Closed Bug 58241 Opened 25 years ago Closed 21 years ago

getYear() of a date does not parse correctly

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Windows 2000
defect

Tracking

()

RESOLVED DUPLICATE of bug 22964

People

(Reporter: andy, Assigned: rogerl)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) BuildID: 99147 The parsed year from the getYear() is not returned correctly. IE and Netscape 3.04 display it correctly. We have not done much more testing than these, except for Opera 4 which has the same parsing problem. Please let me know if the bug is fixed in a newer version of the browser. Reproducible: Always Steps to Reproduce: 1. Use Netscape 4.x 2. Go to http://www.visualsolutionsinc.com/samples/error/date.htm 3. Actual Results: The year parsed comes back as 100 not 2000. Expected Results: The year to show as 2000. The purpose for this is a calendar that is created client side.
Use getFullYear() instead of getYear() to get the year 2000.
This bug is fixed with the use of getFullYear instead.
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Good; but I actually have to mark this bug as "Invalid", sorry - See bug 22964 for good references on this issue.
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
Marking Invalid -
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → INVALID
Marking Verified -
Status: RESOLVED → VERIFIED
*** Bug 276567 has been marked as a duplicate of this bug. ***
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
*** This bug has been marked as a duplicate of 22964 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.