Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7588

mongo shell ISODate return bug

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.6, 2.4.4, 2.5.0
    • Affects Version/s: 2.2.0
    • Component/s: JavaScript
    • Environment:
      Ubuntu 10.04.3
    • Fully Compatible
    • ALL

      For some input strings, mongo shell ISODate() return value has 1 sec difference.
      There are examples.

      > ISODate("2012-10-02 19:28:16.926")
      ISODate("2012-10-02T19:28:15.926Z")
      > ISODate("2012-10-02 21:14:08.072")
      ISODate("2012-10-02T21:14:07.072Z")
      >

            Assignee:
            tad Tad Marshall
            Reporter:
            asm Samuel Ahn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: