Opened 15 years ago

Closed 15 years ago

Last modified 14 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: [email protected]
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, 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))
getDayOfYear(new Date(2007,2,13,1,13))

Change History (4)

comment:1 Changed 15 years ago by Adam Peller

Keywords: [email protected] added
Milestone: 0.9
Owner: changed from psowden to Adam Peller
severity: minornormal

comment:2 Changed 15 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 15 years ago by Adam Peller

Resolution: fixed

(In [9676]) also fixes #2587, #2024

comment:4 Changed 14 years ago by Adam Peller

Cc: [email protected] added
Description: modified (diff)
Keywords: [email protected] removed
Note: See TracTickets for help on using tickets.