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:
[EMAIL PROTECTED] root]# date 03310055 Mon Mar 31 00:55:00 BST 2003 [EMAIL PROTECTED] root]# date --date=yesterday Sat Mar 29 23:55:04 GMT 2003 [EMAIL PROTECTED] root]# As you can see, March 30th has disappeared! Here are the some details about the platform I am using: [EMAIL PROTECTED] 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. [EMAIL PROTECTED] root]# cat /etc/redhat-release Red Hat Linux release 8.0 (Psyche) [EMAIL PROTECTED] root]# uname -a Linux chord 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux [EMAIL PROTECTED] 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 ======================================================================= _______________________________________________ Bug-sh-utils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-sh-utils
