Opened 13 years ago

Last modified 11 years ago

#2587 closed defect

getDayOfYear() is inaccurate between midnight and 1 am — at Initial Version

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

Description

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 (0)

Note: See TracTickets for help on using tickets.