Details
-
Bug
-
Resolution: Duplicate
-
Minor - P4
-
None
-
None
-
None
-
ALL
Description
Date_t::millis value is unsigned, but some of our external interfaces and docs use signed values. There are currently TODOs in the code to make this change.
Here's one example:
> d = new Date(-1)
|
ISODate("1969-12-31T23:59:59.999Z")
|
> d.getTime()
|
-1
|
> db.dates.insert({ "date" : d })
|
> db.dates.findOne().date.getTime()
|
-1
|
>
|
Attachments
Issue Links
- duplicates
-
SERVER-13874 Improve handling of dates, times, and time intervals
-
- Closed
-
- is depended on by
-
TOOLS-83 Mongoexport to CSV fails for dates before epoch.
-
- Closed
-
- related to
-
SERVER-8330 mongoimport (v2.3.2) bug with dates before unix-epoch. throws : BSON representation of supplied JSON is too large
-
- Closed
-
-
SERVER-8559 Make Date_t::toString handle dates before 1970
-
- Closed
-