Closed Bug 24786 Opened 25 years ago Closed 25 years ago

Y2K bug in the JAVASCRIPT Module

Categories

(Rhino Graveyard :: Core, defect, P3)

x86
Windows 95
defect

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!
Use getFullYear(). getYear is nonstandard; Netscape's and IE's implementations 
differ.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Thanks for your help.. Script works fine now. :)
Works for Me
Platform: PC
OS: Windows 98
Build # 2000100508 M18 Trunk Build
Marking as Verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.