Fix Debugbarr : TraceableDB::idate not compatible with DolDB::idate
The `TracableDB` class extend the `DolDB` but not implement the method `idate` correctly : it missing the `$gm` parameter.
This commit is contained in:
parent
2794327e10
commit
843f49643d
@ -80,12 +80,13 @@ class TraceableDB extends DoliDB
|
||||
* Convert (by PHP) a GM Timestamp date into a string date with PHP server TZ to insert into a date field.
|
||||
* Function to use to build INSERT, UPDATE or WHERE predica
|
||||
*
|
||||
* @param int $param Date TMS to convert
|
||||
* @return string Date in a string YYYYMMDDHHMMSS
|
||||
* @param int $param Date TMS to convert
|
||||
* @param mixed $gm 'gmt'=Input informations are GMT values, 'tzserver'=Local to server TZ
|
||||
* @return string Date in a string YYYY-MM-DD HH:MM:SS
|
||||
*/
|
||||
public function idate($param)
|
||||
public function idate($param, $gm = 'tzserver')
|
||||
{
|
||||
return $this->db->idate($param);
|
||||
return $this->db->idate($param, $gm);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user