Relaxed JSON pads datetime milliseconds with spaces instead of zeroes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.14.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: