[SERVER-2138] even the dates from the 20 century are not processed correctly Created: 23/Nov/10  Updated: 19/Apr/12  Resolved: 23/Nov/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.6.5, 1.7.1, 1.7.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Valery Khamenya Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 10.10 amd64


Operating System: Linux
Participants:

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

 Comments   
Comment by Eliot Horowitz (Inactive) [ 23/Nov/10 ]

SERVER-405

Generated at Thu Feb 08 02:59:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.