Bug 3296
| Summary: | JavaScript Date object is limited to 1901-2038 range. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jonathan Hurshman <jhurshman> |
| Component: | JavaScriptCore | Assignee: | Maciej Stachowiak <mjs> |
| Status: | VERIFIED FIXED | ||
| Severity: | Normal | CC: | aha, sullivan |
| Priority: | P3 | ||
| Version: | 412 | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
| Bug Depends on: | 3477 | ||
| Bug Blocks: | |||
Jonathan Hurshman
Safari's Date objects in JavaScript have only the range Dec 13th, 1901 to January 18th, 2038. Attempts
to create a Date object outside of this range will return the closest date within that range.
Steps to reproduce:
1. In the address bar, type "javascript:alert(new Date('1/1/2050'))".
Expected results:
Alert containing "Sat Jan 1 2050 00:00:00".
Actual results:
Alert containing "Mon Jan 18 2038 22:14:07"
(This bug was copied from Apple's Bug Reporter #3756855)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
John Sullivan
*** Bug 3417 has been marked as a duplicate of this bug. ***
Carsten Guenther
This will be fixed together with Bug 3477.
Carsten Guenther
This was fixed together with Bug 3477.