[CSHARP-124] DateTime values before 1970 used in a $gt comparison produce no results Created: 04/Dec/10  Updated: 20/Mar/14  Resolved: 04/Dec/10

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 0.7
Fix Version/s: 0.9

Type: Bug Priority: Major - P3
Reporter: Ian Mercer Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Win 7, .NET 4



 Description   

Performing a find with various DateTime values using a greater than comparison produces incorrect results for dates prior to 1970.

... Find(Query.GT("DateTimeFetched", cut)).Count();

Found 0 records for 01/01/0001 00:00:00
Found 2559 records for 01/01/1970 00:00:00
Found 2559 records for 01/01/1980 00:00:00
Found 2559 records for 01/01/2010 00:00:00

Expected either throw an exception if there is no way that the passed DateTime value can be handled or (ii) preferably for it to actually work.



 Comments   
Comment by Robert Stam [ 04/Dec/10 ]

This is actually a server bug. See:

http://jira.mongodb.org/browse/SERVER-405

Generated at Wed Feb 07 21:35:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.