#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 )
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 14 years ago by
Keywords: | [email protected] added |
---|---|
Milestone: | → 0.9 |
Owner: | changed from psowden to Adam Peller |
severity: | minor → normal |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|
comment:4 Changed 13 years ago by
Cc: | [email protected]… added |
---|---|
Description: | modified (diff) |
Keywords: | [email protected] removed |
Note: See
TracTickets for help on using
tickets.
(In [9674]) Go back to iterative approach to calculate day/week of year, due to DST bug. Fixes #2587, #2024