Skip to content

Commit 2848445

Browse files
author
Mauro Cassani
committed
README update
1 parent 1774329 commit 2848445

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ foreach ($qb->getResults() as $element){
132132

133133
## Working with dates
134134

135-
You can perform queries based on datetime fields. You must specify **date format**:
135+
You can perform queries based on datetime fields. You must specify **date format** if your format is not `YYYY-mm-dd`:
136136

137137
```php
138138
use ArrayQuery\QueryBuilder;

tests/QueryBuilderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ public function it_should_get_results_from_a_query_with_equals_date()
425425
{
426426
foreach ($this->usersArrays as $array) {
427427
$qb = QueryBuilder::create($array)
428-
->addCriterion('update_date', '2017-08-30', 'EQUALS_DATE', 'Y-m-d')
428+
->addCriterion('update_date', '2017-08-30', 'EQUALS_DATE')
429429
->sortedBy('id', 'ASC');
430430

431431
$results = $qb->getResults();

0 commit comments

Comments
 (0)