Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2024

JsonReader handles `Date()` incorrectly

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0
    • Affects Version/s: 3.2.0
    • Component/s: BSON
    • Labels:
      None
    • Minor Change

      JsonReader treats Date() and new Date() the same, but in the shell the return different things:

      Date() returns a string eg: "Thu Oct 29 2015 14:46:13 GMT+0000 (GMT)"
      new Date() returns a date object eg: ISODate("2015-10-29T14:47:08.857Z")

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: