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

Relaxed JSON pads datetime milliseconds with spaces instead of zeroes

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.14.0
    • Affects Version/s: None
    • Component/s: None
    • None

      To reproduce:

      bson_t test = BSON_INITIALIZER;
      bson_append_date_time (&test, "a", -1, 1356351330001);
      printf("%s\n", bson_as_relaxed_extended_json (&test, NULL));
      

      Prints:

      { "a" : { "$date" : "2012-12-24T12:15:30.  1Z" } }
      

      Which uses spaces in the millisecond portion instead of zeroes.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: