diff --git a/include/database/class_noalyss_sql.php b/include/database/class_noalyss_sql.php index b05cb38c3..1844f19ad 100644 --- a/include/database/class_noalyss_sql.php +++ b/include/database/class_noalyss_sql.php @@ -140,7 +140,7 @@ abstract class Noalyss_SQL case "date": if ($this->date_format=="") throw new Exception('Format Date invalide'); - $par .=$sep.'to_date($'.$idx.",'".$this->date_format."')"; + $par .=$sep.'to_timestamp($'.$idx.",'".$this->date_format."')"; break; default: $par .= $sep."$".$idx; @@ -177,7 +177,7 @@ abstract class Noalyss_SQL switch ($this->type[$value]) { case "date": - $par=$value.'=to_date($'.$idx.",'".$this->date_format."')"; + $par=$value.'=to_timestamp($'.$idx.",'".$this->date_format."')"; break; default: $par=$value."= $".$idx;