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

mongo shell ISODate return bug

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.6, 2.4.4, 2.5.0
    • Component/s: JavaScript
    • Labels:
    • Environment:
      Ubuntu 10.04.3
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      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")
      >

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: