Closed
Bug 24786
Opened 25 years ago
Closed 25 years ago
Y2K bug in the JAVASCRIPT Module
Categories
(Rhino Graveyard :: Core, defect, P3)
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: brian, Assigned: norrisboyd)
Details
Please forgive me if I'm entering this JAVASCRIPT bug in the wrong area. I'm
not sure which module to put it in. I tested this bug in the 2000011314 build.
Last year, this string:
var fyear = dateObj.getYear()
document.write(fyear)
returned 99. This year, this string returns 100. Shouldn't it return 00? Just
in testing, I tested the code in Internet Explorer 5 (which I hate dearly) and
the string returned
2000 instead of just the last two digits. Could you please correct whatever is
necessary? Thanks!
Assignee | ||
Comment 1•25 years ago
|
||
Use getFullYear(). getYear is nonstandard; Netscape's and IE's implementations
differ.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Comment 3•25 years ago
|
||
Works for Me
Platform: PC
OS: Windows 98
Build # 2000100508 M18 Trunk Build
Marking as Verified
Status: RESOLVED → VERIFIED
Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•