Fix #752 date search

This commit is contained in:
Romain Neutron
2012-06-26 12:23:45 +02:00
parent 1aaeec8eb5
commit 69ba5a020d
2 changed files with 3 additions and 3 deletions

View File

@@ -356,7 +356,7 @@ class searchEngine_options implements Serializable
public function set_min_date($min_date)
{
if ( ! is_null($min_date) && trim($min_date) !== '') {
$this->date_min = DateTime::createFromFormat('d/m/Y H:i:s', $min_date . ' 00:00:00');
$this->date_min = DateTime::createFromFormat('Y/m/d H:i:s', $min_date . ' 00:00:00');
}
return $this;
@@ -379,7 +379,7 @@ class searchEngine_options implements Serializable
public function set_max_date($max_date)
{
if ( ! is_null($max_date) && trim($max_date) !== '') {
$this->date_max = DateTime::createFromFormat('d/m/Y H:i:s', $max_date . ' 23:59:59');
$this->date_max = DateTime::createFromFormat('Y/m/d H:i:s', $max_date . ' 23:59:59');
}
return $this;