We found a bug in the "date" command in shellutils.  (We renamed it "gnudate".)

Today is Monday, April 8th, the day after the Daylight Savings time change.

If we try to get the date of "last saturday", it reports Friday.  It looks like it reports Saturday, but then subtracts an hour because of DST, which makes it Friday.


/home/dmullig: gnudate --v                                                  
date (GNU sh-utils) 2.0                                                    
Written by David MacKenzie.                                                
                                                                           
Copyright (C) 1999 Free Software Foundation, Inc.                          
This is free software; see the source for copying conditions.  There is NO  
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

/home/dmullig: gnudate                                                      
Mon Apr  8 08:40:42 EDT 2002                                                

/home/dmullig: gnudate -d"last saturday"                                    
Fri Apr  5 23:00:00 EST 2002                                                

--
David J Mulligan Jr
Spartan Stores
(419) 891-4954
[EMAIL PROTECTED]

"Can we fix it?  Yes we can!" - Bob the Builder

Reply via email to