Bug 3296 - JavaScript Date object is limited to 1901-2038 range.
Summary: JavaScript Date object is limited to 1901-2038 range.
Status: VERIFIED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 412
Hardware: Mac OS X 10.4
: P3 Normal
Assignee: Maciej Stachowiak
URL:
Keywords:
: 3417 (view as bug list)
Depends on: 3477
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-07 06:11 PDT by Jonathan Hurshman
Modified: 2005-07-03 07:30 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Hurshman 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)
Comment 1 John Sullivan 2005-06-17 14:44:52 PDT
*** Bug 3417 has been marked as a duplicate of this bug. ***
Comment 2 Carsten Guenther 2005-06-22 15:53:11 PDT
This will be fixed together with Bug 3477.
Comment 3 Carsten Guenther 2005-06-28 16:02:09 PDT
This was fixed together with Bug 3477.