noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 55/151: Timestamp instead of date


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 55/151: Timestamp instead of date
Date: Sat, 4 Feb 2017 17:14:27 +0000 (UTC)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 7b2e4ee4bf763457e6141dd8db09cecf2c02a988
Author: Dany De Bontridder <address@hidden>
Date:   Sat Jan 7 23:45:42 2017 +0100

    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 b05cb38..1844f19 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]