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

Parsing extended JSON datetime

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.6.0
    • Component/s: libbson
    • Labels:
      None

      Description

      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
      

        Attachments

          Activity

            People

            Assignee:
            jesse A. Jesse Jiryu Davis
            Reporter:
            Jeroenooms Jeroen Ooms [X] (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: