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

From: [email-masked]
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