Re: Bug in 'date'
Jim Meyering <[email protected]> Wed, 02 Apr 2003 15:36:12 +0200
| Newsgroups | gmane.comp.gnu.sh-utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > I believe I've found a small bug in date. I am in the United Kingdom and we > have daylight saving whereby the clocks go forward one hour at 2am on the > 30th March, meaning Grenwich Mean Time (GMT) is replaced by British Summer > Time (BST). Our system clocks are set to reflect this, but during the time > between midnight and 1am on the 31st March the date program gives me an > incorrect value when I ask for yesterday's date: > > [root@chord root]# date 03310055 > Mon Mar 31 00:55:00 BST 2003 > [root@chord root]# date --date=yesterday > Sat Mar 29 23:55:04 GMT 2003 > [root@chord root]# > > > As you can see, March 30th has disappeared! Here are the some details about > the platform I am using: Thank you for that report, but I don't think it's a bug. date interprets `yesterday' as meaning `24 hours earlier', so it's doing what it's supposed to, since March 30 had only 23 hours.