I'm having a problem with wrong results when filtering order by date.
I use this code:
{% set orders = craft.commerce.orders.dateOrdered(' >= 2016-07-01 00:00:00').dateOrdered(' <= 2016-07-01 23:59:59').find() %}
The last order has been placed on 2016-06-29, and there has been no orders placed on 2016-07-01, so I would expect order to have no results. However it just lists all orders in the system.
If I change the date to 2016-06-10, the result is empty - as expected.
Is this bug in Craft / Craft Commerce, or do I miss something?
How do I make sure I get no results, if there have been no orders on this date?