Code comment

This commit is contained in:
Laurent Destailleur 2021-01-03 15:10:33 +01:00
parent fd4dab495f
commit f462f68056

View File

@ -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';