Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
Description
On https://docs.mongodb.com/manual/reference/mongodb-extended-json/:
The MongoDB JSON parser currently does not support loading ISO-8601 strings representing dates prior to the Unix epoch. When formatting pre-epoch dates and dates past what your system’s time_t type can hold, the following format is used:
{ "$date" : { "$numberLong" : "<dateAsMilliseconds>" } }
As of MongoDB 3.0, mongoexport does not do this for negative epoch values – it will export them as ISO-8601 dates.