Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1962

Parsing extended JSON datetime

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0
    • Affects Version/s: 1.5.1
    • Component/s: libbson
    • Labels:
      None

      The datetime.json specification tests contains an example with the following json:

          "extjson": "{\"a\" : {\"$date\" : \"1960-12-24T12:15:30.500Z\"}}",
      

      Converting this to bson with bson_new_from_json gives an error:

      Could not parse "1960-12-24T12:15:30.500Z" as a date
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            Jeroenooms Jeroen Ooms [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: