On Thu, Dec 24, 2009 at 05:47:17PM +0000, brian m. carlson wrote:
> lakeview ok % date; date -d"a fortnight ago"; date -d"14 days ago" 
> Thu Dec 24 17:37:15 UTC 2009
> Thu Dec 10 18:37:15 UTC 2009
> Thu Dec 10 17:37:15 UTC 2009
> lakeview ok % (export LC_ALL=C; date; date -d"a fortnight ago"; date -d"14 
> days ago")
> Thu Dec 24 17:39:29 UTC 2009
> Thu Dec 10 18:39:29 UTC 2009
> Thu Dec 10 17:39:29 UTC 2009
> 
> Obviously, "a fortnight ago" should be exactly equivalent to "14 days
> ago", but it's not.  Daylight Saving Time is not relevant here because
> (a) this is UTC, (b) DST in the US ended in November, and (c) LC_ALL=C
> shows the same behavior.

In UTC-0700, it's 6 hours behind.

br...@neon:~$ date; date -d"a fortnight ago"; date -d"14 days ago"
Sat May 29 15:55:48 PDT 2010
Sat May 15 09:55:48 PDT 2010
Sat May 15 15:55:48 PDT 2010
br...@neon:~$ (export LC_ALL=C; date; date -d"a fortnight ago"; date -d"14 days 
ago)
Sat May 29 15:56:02 PDT 2010
Sat May 15 09:56:02 PDT 2010
Sat May 15 15:56:02 PDT 2010

I guess "a fortnight ago" is doing something weird with the UTC-0100
timezone.

Two servers running lenny (one with the same UTC-0700 timezone, another
with UTC+0000) don't have this bug.

Brian

Attachment: signature.asc
Description: Digital signature

Reply via email to