[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 103/151: Timestamp instead of date
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 103/151: Timestamp instead of date |
Date: |
Sat, 4 Feb 2017 17:14:32 +0000 (UTC) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 24f4cae8d478b43c756ffede1abdab0d7181279d
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;
- [Noalyss-commit] [noalyss] 69/151: adapt for php 7.0, (continued)
- [Noalyss-commit] [noalyss] 69/151: adapt for php 7.0, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 80/151: Export Detail Operation Analytique + Document, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 47/151: Correct simul.py remove old file, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 77/151: Scenario test pour PDF_Operation, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 82/151: Remove useless file, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 78/151: Scenario test pour PDF_Operation Task #9 - PDF_Operation : ajout des options, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 71/151: Database Ajout d'une fonction pour retirer une seule ligne, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 97/151: update of the config.inc.example file, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 94/151: Fix problem of accentuated char, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 105/151: Noalyss_SQL Fix bug in set and get fct, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 103/151: Timestamp instead of date,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 90/151: Improve Acc_Bilan::warning, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 87/151: Performance : improve VERIF , Improve Accounting check, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 92/151: Fix config.inc.php : add carriage return, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 106/151: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 85/151: Performance : improve VERIF , Affiche uniquement journaux incorrects, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 86/151: Performance : improve VERIF , Totaux Actif/Passif, Charge/Produit, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 102/151: Improve DOC for Scenario, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 108/151: Noalyss_SQL add function get_pk_value for getting the value of the PK, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 75/151: Scenario pour dév. de comptabilité analytique, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 70/151: sécurité Task #8 - Sécurité protection SQL, Dany De Bontridder, 2017/02/04