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)
Tracking
()
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.
Comment 1•25 years ago
|
||
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
Comment 3•25 years ago
|
||
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 → ---
Comment 4•25 years ago
|
||
Marking Invalid -
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → INVALID
Comment 6•21 years ago
|
||
*** Bug 276567 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
Comment 7•21 years ago
|
||
*** This bug has been marked as a duplicate of 22964 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago → 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•