Y2K bug in the JAVASCRIPT Module

VERIFIED INVALID

Status

P3
normal
VERIFIED INVALID
19 years ago
18 years ago

People

(Reporter: brian, Assigned: norrisboyd)

Tracking

Details

(Reporter)

Description

19 years ago
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

19 years ago
Use getFullYear(). getYear is nonstandard; Netscape's and IE's implementations 
differ.
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → INVALID
(Reporter)

Comment 2

19 years ago
Thanks for your help.. Script works fine now. :)

Comment 3

18 years ago
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.