WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
VERIFIED FIXED
3296
JavaScript Date object is limited to 1901-2038 range.
https://bugs.webkit.org/show_bug.cgi?id=3296
Summary
JavaScript Date object is limited to 1901-2038 range.
Jonathan Hurshman
Reported
2005-06-07 06:11:36 PDT
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
Comment 1
2005-06-17 14:44:52 PDT
***
Bug 3417
has been marked as a duplicate of this bug. ***
Carsten Guenther
Comment 2
2005-06-22 15:53:11 PDT
This will be fixed together with
Bug 3477
.
Carsten Guenther
Comment 3
2005-06-28 16:02:09 PDT
This was fixed together with
Bug 3477
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug