-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
-
Tracks community-submitted PR 1227:
Summary
Make the JSON format of primitive.DateTime use UTC, consistent with the relaxed extJSON format.
Background & Motivation
Marshalling in relaxed extJSON already uses UTC, which makes sense since the type has no timezone information.
Using local time in JSON does not appear to have been intentional, as there is no comment or test for this behavior.
Using UTC allows the JSON to be deterministic with respect to the BSON, rather than depend on the environment.