Parsing extended JSON datetime

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.6.0
    • Affects Version/s: 1.5.1
    • Component/s: libbson
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              A. Jesse Jiryu Davis
              Reporter:
              Jeroen Ooms [X]
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: