Skip to content

Possible bug: Date equality #221

@countermeasure

Description

@countermeasure

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions