Encoding of dates after year 9999 disagree with spec

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.29.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • C Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      When encoding the date from Unix timestamp 253402300800000 (in milliseconds) the C driver produces:

      {"$date":"10000-01-01T00:00:00Z"}
      

      The extended JSON spec describes "Datetime [year before 1970 or after 9999]" to have the same encoding for Canonical Extended JSON and Relaxed Extended JSON.

      The expected encoding is:

      {"$date":{"$numberLong":"253402300800000"}
      

              Assignee:
              Kevin Albertson
              Reporter:
              Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: