bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in "date" (sh-utils 2.0)


From: Peter Selinger
Subject: bug in "date" (sh-utils 2.0)
Date: Thu, 25 Oct 2001 20:46:19 -0400 (EDT)

Consider this:

q% date -d monday
Sun Oct 28 23:00:00 EST 2001

Notice anything wrong? It is giving the date for Sunday, not Monday.
Actually, precisely 1 hour earlier than what it should be.

Now, on Sunday we are switching from daylight savings time to standard
time. This is not taken into account correctly by date.

Here's the complete sequence. sh-utils-2.0.

q% date
Thu Oct 25 20:41:46 EDT 2001
q% date -d thursday
Thu Oct 25 00:00:00 EDT 2001
q% date -d friday
Fri Oct 26 00:00:00 EDT 2001
q% date -d saturday
Sat Oct 27 00:00:00 EDT 2001
q% date -d sunday
Sun Oct 28 00:00:00 EDT 2001
q% date -d monday
Sun Oct 28 23:00:00 EST 2001
q% date -d tuesday
Mon Oct 29 23:00:00 EST 2001
q% date -d wednesday
Tue Oct 30 23:00:00 EST 2001

-- Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]