-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: mongodb-2.6
-
Component/s: manual
-
None
SERVER-11813 changed the output format for BSON date values in strict-json. This was introduced in 2.5.5.
This means that mongoexport in 2.6 now produces different output for date values.
$ /mongodb-2.2.default/bin/mongoexport -d test -c test { "_id" : { "$date" : 1407433938490 } } $ /mongodb-2.4.default/bin/mongoexport -d test -c test { "_id" : { "$date" : 1407433938490 } } $ /mongodb-2.6.default/bin/mongoexport -d test -c test { "_id" : { "$date" : "2014-08-07T13:52:18.490-0400" } }
The value is ISO-8601 format using the local timezone of the system mongoexport is running on. We failed to document this change for the 2.6 release. This is a breaking change to any programs that were consuming the output of mongoexport.
Related parsing changes: DOCS-2539
- is related to
-
JAVA-1354 JSON date parsing fails with timezones other than Z
-
- Closed
-
-
SERVER-11813 In strict-json mode, represent dates with strings.
-
- Closed
-
- related to
-
DOCS-2539 Document ISODate support in JSON parser
-
- Closed
-