mongo shell ISODate return bug

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 Marshall
              Reporter:
              Samuel Ahn
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: