@@ -25,10 +25,10 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | $date = \DateTime::createFromFormat($filter->getPhpFormat(), $conditions[$filter->getColumn()]); |
| 27 | 27 | if ($date instanceof \DateTime) { |
| 28 | - $this->data_source->where( |
|
| 29 | - "CONVERT(varchar(10), {$filter->getColumn()}, 112) = ?", |
|
| 30 | - $date->format('Ymd') |
|
| 31 | - ); |
|
| 28 | + $this->data_source->where( |
|
| 29 | + "CONVERT(varchar(10), {$filter->getColumn()}, 112) = ?", |
|
| 30 | + $date->format('Ymd') |
|
| 31 | + ); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | } |
@@ -51,10 +51,10 @@ discard block |
||
| 51 | 51 | if ($date_from instanceof \DateTime) { |
| 52 | 52 | $date_from->setTime(0, 0, 0); |
| 53 | 53 | |
| 54 | - $this->data_source->where( |
|
| 55 | - "CONVERT(varchar(10), {$filter->getColumn()}, 112) >= ?", |
|
| 56 | - $date_from->format('Ymd') |
|
| 57 | - ); |
|
| 54 | + $this->data_source->where( |
|
| 55 | + "CONVERT(varchar(10), {$filter->getColumn()}, 112) >= ?", |
|
| 56 | + $date_from->format('Ymd') |
|
| 57 | + ); |
|
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | |
@@ -63,10 +63,10 @@ discard block |
||
| 63 | 63 | if ($date_to instanceof \DateTime) { |
| 64 | 64 | $date_to->setTime(23, 59, 59); |
| 65 | 65 | |
| 66 | - $this->data_source->where( |
|
| 67 | - "CONVERT(varchar(10), {$filter->getColumn()}, 112) <= ?", |
|
| 68 | - $date_to->format('Ymd') |
|
| 69 | - ); |
|
| 66 | + $this->data_source->where( |
|
| 67 | + "CONVERT(varchar(10), {$filter->getColumn()}, 112) <= ?", |
|
| 68 | + $date_to->format('Ymd') |
|
| 69 | + ); |
|
| 70 | 70 | } |
| 71 | 71 | } |
| 72 | 72 | } |