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

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

Bugs in GNU date (sh-utils package)


From: Hon-Yin Kok
Subject: Bugs in GNU date (sh-utils package)
Date: Wed, 4 Apr 2001 14:40:46 -0500 (CDT)

Hi folks:

There is a bug in the GNU date program.  If this week is a new month and you
look for the date for last friday (last month), it will give you a day
earlier (which is the wrong date).  If this week has the same month as last
week, then the output is correct.

For example:

% date
Wed Apr  4 15:36:59 EDT 2001  (correct)

% date --date='last friday'
Thu Mar 29 23:00:00 EST 2001  (wrong)

% date --date='last monday'
Mon Apr  2 00:00:00 EDT 2001  (correct)

I haven't look deep into the source code yet, but it is obvious a bug in
GNU date.  If someone already have a patch for this, I would appreciate 
they send it to me instead of duplicating someone else's work.  Thanks.

-KHY



reply via email to

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