Fix regression

This commit is contained in:
Laurent Destailleur 2021-01-04 12:08:14 +01:00
parent b0738643fb
commit 66bd040d2c
2 changed files with 1 additions and 13 deletions

View File

@ -90,7 +90,7 @@ abstract class DoliDB implements Database
*/
public function idate($param, $gm = 'tzserver')
{
// TODO $param should be gmt, so we should add tzouptut to 'gmt' instead of default 'tzserver'
// TODO $param should be gmt, so we should add $gm to 'gmt' instead of default 'tzserver'
return dol_print_date($param, "%Y-%m-%d %H:%M:%S", $gm);
}

View File

@ -685,18 +685,6 @@ class DoliDBPgsql extends DoliDB
return pg_escape_string($stringtoencode);
}
/**
* Convert (by PHP) a GM Timestamp date into a GM string date to insert into a date field.
* Function to use to build INSERT, UPDATE or WHERE predica
*
* @param string $param Date TMS to convert
* @return string Date in a string YYYY-MM-DD HH:MM:SS
*/
public function idate($param)
{
return dol_print_date($param, "%Y-%m-%d %H:%M:%S");
}
/**
* Format a SQL IF
*