From f462f68056dcc1dd443244854e8f15bdd3f24a88 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 3 Jan 2021 15:10:33 +0100 Subject: [PATCH] Code comment --- htdocs/core/db/DoliDB.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/db/DoliDB.class.php b/htdocs/core/db/DoliDB.class.php index 837946ce706..8f2a9dc315e 100644 --- a/htdocs/core/db/DoliDB.class.php +++ b/htdocs/core/db/DoliDB.class.php @@ -89,7 +89,7 @@ abstract class DoliDB implements Database */ public function idate($param) { - // TODO GMT $param should be gmt, so we should add tzouptut to 'gmt' + // TODO $param should be gmt, so we should add tzouptut to 'gmt' instead of default 'tzserver' return dol_print_date($param, "%Y-%m-%d %H:%M:%S"); } @@ -285,7 +285,7 @@ abstract class DoliDB implements Database */ public function jdate($string, $gm = false) { - // TODO GMT must set param gm to true by default + // TODO $string should be converted into a GMT timestamp, so param gm should be set to true by default instead of false if ($string == 0 || $string == "0000-00-00 00:00:00") return ''; $string = preg_replace('/([^0-9])/i', '', $string); $tmp = $string.'000000';