[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;
- [Noalyss-commit] [noalyss] 44/151: Problème htmlentities : charset par défaut différent entre version, (continued)
- [Noalyss-commit] [noalyss] 44/151: Problème htmlentities : charset par défaut différent entre version, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 50/151: Deprecated HtmlInput::make_object must be replace by json_encode, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 48/151: Improve Sorttable, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 54/151: Merge branch 'br_6916', Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 53/151: Improve DOC for Scenario, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 56/151: IText add htmlentities to protect, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 22/151: Export en PDF d'operation, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 60/151: Regenerated from less, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 65/151: Clean code, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 52/151: Improve DOC for Scenario, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 55/151: Timestamp instead of date,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 61/151: Cosmetic : user / password use placeholder, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 67/151: Performance : replace Anc_Grandlivre->display_html with Anc_Grandlivre->load, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 59/151: improve CSS theme, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 45/151: Documentation and clean code, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 58/151: IDate : admit date from before 2000, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 63/151: Update doc, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 66/151: adapt for php 7.0, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 68/151: add newline at the end of file, Dany De Bontridder, 2017/02/04
- [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