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

new Date function is not working

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.2.0-rc2
    • Shell
    • None
    • Minor Change
    • ALL
    • Hide

      mongo --nodb

      MongoDB shell version: 3.2.0-rc2
      > new Date('2015-11-01 00:00:00')
      ISODate("0NaN-NaN-NaNTNaN:NaN:NaNZ")

      Show
      mongo --nodb MongoDB shell version: 3.2.0-rc2 > new Date('2015-11-01 00:00:00') ISODate("0NaN-NaN-NaNTNaN:NaN:NaNZ")

    Description

      Can't get date value with new Date() function with mongo shell client 3.2.0 rc2.

      MongoDB shell version: 3.2.0-rc2
      > new Date('2015-11-01 00:00:00')
      ISODate("0NaN-NaN-NaNTNaN:NaN:NaNZ")

      Which should return ISODate("2015-10-31T16:00:00Z") .

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            carl.dong@windfindtech.com carl dong
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: