Skip to content

query using mongodate not working in master branch #961

@anchetaWern

Description

@anchetaWern

I'm previously using version 2.3 and the following query works for me:

'time_created' => [
          '$gte' => new \MongoDate(Carbon::parse('2016-01-02')->timestamp),
          '$lte' => new \MongoDate(Carbon::parse('2016-10-10')->timestamp)
        ]

But now that I switched to master branch, supplying the queries above results in no results being returned. I tried the following to format the raw date but it didn't work:

  • Carbon's iso8601 date format
  • Carbon's raw datetime object

any ideas? this is an aggregate query

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions