BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001263 [uClibc] Standards Compliance major always 03-07-07 11:55 01-05-08 17:00
Reporter mikevoyt View Status public  
Assigned To uClibc
Priority normal Resolution no change required  
Status closed   Product Version 0.9.28.1
Summary 0001263: 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 !!!


Additional Information
Attached Files

- Relationships

- Notes
(0002353)
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.
 
(0002857)
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
10-22-07 15:04 JohnAta Issue Monitored: JohnAta
01-05-08 17:00 vapier Status assigned => closed
01-05-08 17:00 vapier Resolution open => no change required


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker