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

even the dates from the 20 century are not processed correctly

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.6.5, 1.7.1, 1.7.2
    • Component/s: None
    • None
    • Environment:
      Ubuntu 10.10 amd64
    • Linux

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

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

              Created:
              Updated:
              Resolved: