Opened 13 years ago

Closed 12 years ago

Last modified 11 years ago

#2587 closed defect (fixed)

getDayOfYear() is inaccurate between midnight and 1 am

Reported by: guest Owned by: Adam Peller
Priority: high Milestone: 0.9
Component: Date Version: 0.4.1
Keywords: Cc: mde@…
Blocked By: Blocking:

Description (last modified by Adam Peller)

This only applies in places that do daylight savings time switches, but in those locations, in between the spring switch and the fall switch, dojo.date.getDayOfYear returns the wrong value for an hour after midnight. (It's all due to last Sunday lasting only 23 hours)

getDayOfYear(new Date(2007,2,13,0,13))
71
getDayOfYear(new Date(2007,2,13,1,13))
72

Change History (4)

comment:1 Changed 13 years ago by Adam Peller

Keywords: mde@fleegix.org added
Milestone: 0.9
Owner: changed from psowden to Adam Peller
severity: minornormal

comment:2 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [9674]) Go back to iterative approach to calculate day/week of year, due to DST bug. Fixes #2587, #2024

comment:3 Changed 12 years ago by Adam Peller

Resolution: fixed

(In [9676]) dojo.date.difference also fixes #2587, #2024

comment:4 Changed 11 years ago by Adam Peller

Cc: mde@… added
Description: modified (diff)
Keywords: mde@fleegix.org removed
Note: See TracTickets for help on using tickets.