Closed Bug 844231 Opened 11 years ago Closed 11 years ago

(new Date(new Date(2150))).getTime() == 2000

Categories

(Core :: JavaScript Engine, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 810973

People

(Reporter: mayhemer, Unassigned)

Details

STR:
var date1 = new Date(2480);
var date2 = new Date(date1);
assert(date2.getTime() == 2480); // this would throw

Actual:
date2.getTime() returns 2000.

Expected:
date2.getTime() returns 2480.

Chrome does this correctly.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.