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

even the dates from the 20 century are not processed correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 1.6.5, 1.7.1, 1.7.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 10.10 amd64
    • Operating System:
      Linux

      Description

      MongoDB is not yet ready as a DB for historical documents, even for those from WW II ?
      And the problem is not addressed as for 1.7/1.8 ?

      $ mongo
      MongoDB shell version: 1.7.2-pre-
      connecting to: test
      > db.test.insert(

      {'date' : new Date(1945,10,10)}

      )
      > db.test.find()

      { "_id" : ObjectId("4cebba28b796a4850a6c6ea2"), "date" : ISODate("584555996-01--2147483647T13:25:52.232Z") }

      > db.test.find(

      { '$where' : 'this.date < new Date(2010, 10, 10)'}

      )
      > db.test.insert(

      {'date' : new Date(1999,10,10)}

      )
      > db.test.find(

      { '$where' : 'this.date < new Date(2010, 10, 10)'}

      )

      { "_id" : ObjectId("4cebba3eb796a4850a6c6ea3"), "date" : ISODate("1999-11-09T23:00:00Z") }

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            vak Valery Khamenya
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: