From 24f4cae8d478b43c756ffede1abdab0d7181279d Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 7 Jan 2017 23:45:42 +0100 Subject: [PATCH] Timestamp instead of date --- include/database/class_noalyss_sql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;