  |
195 | 195 | | |
| |
196 | 196 | | if ($this->hasDateSet('from')) { |
| |
197 | 197 | | $Qlisting->appendQuery('and p.products_date_added >= :products_date_added'); |
  |
198 | | - | $Qlisting->bindValue(':products_date_added', date('Ymd', $this->_date_from)); |
| |
| 198 | + | $Qlisting->bindValue(':products_date_added', date('Y-m-d H:i:s', $this->_date_from)); |
|
199 | 199 | | } |
| |
200 | 200 | | |
| |
201 | 201 | | if ($this->hasDateSet('to')) { |
| |
202 | 202 | | $Qlisting->appendQuery('and p.products_date_added <= :products_date_added'); |
  |
203 | | - | $Qlisting->bindValue(':products_date_added', date('Ymd', $this->_date_to)); |
| |
| 203 | + | $Qlisting->bindValue(':products_date_added', date('Y-m-d H:i:s', $this->_date_to)); |
  |
204 | 204 | | } |
| |
205 | 205 | | |
| |
206 | 206 | | if ($this->hasPriceSet('from')) { |