[uClibc 0001263]: Daylight Saving Time (DST) doesn't end at the correct time for the US

bugs at busybox.net bugs at busybox.net
Mon Oct 22 22:03:15 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1263 
====================================================================== 
Reported By:                mikevoyt
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   1263
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             03-07-2007 11:55 PST
Last Modified:              10-22-2007 15:03 PDT
====================================================================== 
Summary:                    Daylight Saving Time (DST) doesn't end at the
correct time for the US
Description: 
There are new rules in 2007 for Daylight Saving Time.

Daylight Saving Time for 2007 beings at 2AM on 3/11, and ends at 2AM on
11/4.

uClibc will start DST at the correct date/time; but it will not end at the
correct time.

The following test case illustrates the bug:

# date -u -s 031109592007 ; date ; sleep 70 ; date
Sun Mar 11 09:59:00 UTC 2007
Sun Mar 11 01:59:00 PST 2007
Sun Mar 11 03:00:10 PDT 2007  <---- GOOD: jumps an hour ahead

# date -u -s 110409592007 ; date ; sleep 70 ; date
Sun Nov  4 09:59:00 UTC 2007
Sun Nov  4 01:59:00 PST 2007
Sun Nov  4 02:00:10 PST 2007  <----- BAD: it should be 1:00:10 !!!



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

---------------------------------------------------------------------- 
 lubek - 05-10-07 07:50  
---------------------------------------------------------------------- 
Interestingly, the error occurs only when setting the date with -u:

export TZ="PST8PDT"; date -s 110401592007; date; sleep 70; date
Sun Nov  4 01:59:00 PDT 2007
Sun Nov  4 01:59:00 PDT 2007
Sun Nov  4 01:00:10 PST 2007

The short TZ form was used to show that the new rules are in effect. 

---------------------------------------------------------------------- 
 JohnAta - 10-22-07 15:03  
---------------------------------------------------------------------- 
The submitter's example does not show an error in DST processing.  When
setting the time, it was set to 1:59 PST which is an hour late since
standard time has already been entered. This is because when Daylight
Savings ends, time backs up an hour and repeats itself in the standard
time zone so between 1 and 2, there can be two specifications: one in
daylight savings and the other in standard time.  So the example
originally given behaved correctly in that since time had already gone
back to standard time, there is no rollback pending between 1:59 PST and
2:00 PST.  The example should have set the time an hour earlier like:

# date -u -s 110408592007 ; date ; sleep 70 ; date
Sun Nov 4 08:59:00 UTC 2007
Sun Nov 4 01:59:00 PDT 2007
Sun Nov 4 01:00:10 PST 2007 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-07-07 11:55  mikevoyt       New Issue                                    
03-07-07 11:55  mikevoyt       Status                   new => assigned     
03-07-07 11:55  mikevoyt       Assigned To               => uClibc          
05-10-07 07:50  lubek          Note Added: 0002353                          
10-22-07 15:03  JohnAta        Note Added: 0002857                          
======================================================================




More information about the uClibc-cvs mailing list