Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#5445 closed defect (fixed)

100AD in Calendar renders previous year as '1999'

Reported by: Adam Peller Owned by: Adam Peller
Priority: high Milestone: 1.1
Component: Dijit Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Change History (4)

comment:1 Changed 12 years ago by Adam Peller

looks like

new Date(99,0,1)

yields January 1, 1999. The only way to actually get a year of '99' is to do a setFullYear(99).

comment:2 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [11897]) Avoid Y100/Y2K problem. Fixes #5445

comment:3 Changed 12 years ago by guest

This seems related to #4850 which has more detailed information and patches.

comment:4 Changed 12 years ago by Adam Peller

4850 is the much more general case in core, yes. Similar issue in different code, with riskier fixes that may impact performance more.

Note: See TracTickets for help on using tickets.