-
Notifications
You must be signed in to change notification settings - Fork 481
Possible bug: Date equality #221
Copy link
Copy link
Closed
Description
If looks to me as if date equality testing in queries might not be working properly.
If we assign
var dateValue = new Date(2015, 8, 14);
then we make a query on a collection
var query = myCollection.find({myDate: {'$eq': dateValue});
records in the collection for which myDate is equal to new Date(2015, 8, 14) don't appear to be returned.
'$gte' and '$lte' also appear to fail for equal dates, although they return all the greater than or less than dates.
If I'm missing something here or I'm mistaken, I apologise, but I think this is a bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels