Closed Bug 161885 Opened 23 years ago Closed 21 years ago

javascript date.getYear has a Y2K bug

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 22964

People

(Reporter: steins, Assigned: rogerl)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721 BuildID: 2002072104 The following JavaScript code Todays = new Date(); TheYear = Todays.getYear(); contains 102 as the year, and not 2002 as it should be. And i thought, Y2K bugs were fixed over 2 years ago. Reproducible: Always Steps to Reproduce: 1. See URL above and description 2. 3. Actual Results: Year is reported as 102 Expected Results: Year shoul dbe reported as 2002
getYear() was deprecated. Use getFullYear() instead of getYear(). Reporter: Please search Bugzilla for duplicates before filing a new report. *** This bug has been marked as a duplicate of 45764 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
v
Status: RESOLVED → VERIFIED
Status: VERIFIED → UNCONFIRMED
Resolution: DUPLICATE → ---
*** This bug has been marked as a duplicate of 22964 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.