GNU bug report logs - #11101
Incorrect relative dates the day after DST switchover

Previous Next

Package: coreutils;

Reported by: chip <at> seraphine.us

Date: Tue, 27 Mar 2012 16:49:01 UTC

Severity: normal

Tags: notabug

Merged with 11098, 11125, 15785, 18159, 18479, 20523

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: chip <at> seraphine.us
To: 11101 <at> debbugs.gnu.org
Subject: bug#11101: Incorrect relative dates the day after DST switchover
Date: Tue, 27 Mar 2012 16:04:51 -0000
Shortly after the DST jump in the United States on March 11th, the 'date'
command returned an incorrect relevant date for the first hour after
midnight.   See text capture below.

Note that 2am on March 11th is the official date change; therefore these
commands are illustrating how the relative date is incorrect in the first
hour of the first day after the time change (i.e. are returning the value
one would expect if no time change had occurred).

[root ~]# date --version
date (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.
[root ~]# date
Mon Mar 12 10:58:37 CDT 2012
[root ~]# date -d yesterday +%F
2012-03-11
[root ~]# service ntpd stop
Shutting down ntpd: [ OK ]
[root ~]# date
Mon Mar 12 11:01:08 CDT 2012
[root ~]# date 03120015.00
Mon Mar 12 00:15:00 CDT 2012
[root ~]# date -d yesterday +%F
2012-03-10





This bug report was last modified 6 years and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.