Fix regression
This commit is contained in:
parent
b0738643fb
commit
66bd040d2c
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user