Details
-
Bug
-
Resolution: Done
-
Major - P3
-
1.2.4, 1.4.0
-
None
-
OS X Snow Leopard, Windows 2003 R2
Description
Mongo fails to round-trip the date before epoch when inserted via shell:
> t = db.date1;
> t.drop();
> var d = new Date(-1);
> t.save(
);
> assert.eq(d, t.findOne().d, "Should be equal");
assert: ["Wed Dec 31 1969 23:59:59 GMT+0000 (BST)"] != ["Tue Jan -2147483647 584556020 15:25:52 GMT+0100 (BST)"] are not equal : Should be equal
Reproducible on OS X version 1.2.4 32/64-bit, 1.4.0/64, 1.4.1-pre/64, 1.5.0-pre and on Windows 1.4.0 32-bit.
Attachments
Issue Links
- depends on
-
SERVER-405 dates before epoch sorting
-
- Closed
-
- related to
-
SERVER-14891 Shell will create invalid dates and then persist them
-
- Backlog
-