Bug in 'date'

[email protected] Wed, 2 Apr 2003 11:58:55 +0100
Newsgroups gmane.comp.gnu.sh-utils.bugs
Message-ID <[email protected]>
Hi,

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:

[root@chord root]# date --version
date (sh-utils) 2.0.12
Written by David MacKenzie.

Copyright (C) 2002 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.
[root@chord root]# cat /etc/redhat-release 
Red Hat Linux release 8.0 (Psyche)
[root@chord root]# uname -a
Linux chord 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386
GNU/Linux
[root@chord root]#


Regards,

Charlie Harrison
Web Developer
New Scientist
151 Wardour Street
London W1F 8WE
UK




r============================ DISCLAIMER =============================
This message is intended only for the use of the person(s) 
(\"Intended Recipient\") to whom it is addressed. It may contain 
information, which is privileged and confidential. Accordingly 
any dissemination, distribution, copying or other use of this 
message or any of its content by any person other than the Intended 
Recipient may constitute a breach of civil or criminal law and is 
strictly prohibited. If you are not the Intended Recipient, please 
contact the sender as soon as possible.

Reed Business Information Ltd. and its subsidiary companies
Tel: +44 (0)20 8652 3500

=======================================================================