[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in 'date'
From: |
Jim Meyering |
Subject: |
Re: Bug in 'date' |
Date: |
Wed, 02 Apr 2003 15:36:12 +0200 |
address@hidden 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:
>
> address@hidden root]# date 03310055
> Mon Mar 31 00:55:00 BST 2003
> address@hidden root]# date --date=yesterday
> Sat Mar 29 23:55:04 GMT 2003
> address@hidden 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.
- Bug in 'date', Charles . Harrison, 2003/04/02
- Re: Bug in 'date',
Jim Meyering <=