bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11101: Incorrect relative dates the day after DST switchover


From: chip
Subject: bug#11101: Incorrect relative dates the day after DST switchover
Date: Tue, 27 Mar 2012 16:04:51 -0000
User-agent: SquirrelMail/1.4.22-2.fc14

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]