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:
Indelog 2021-01-08 11:42:20 +01:00
parent 2794327e10
commit 843f49643d

View File

@ -81,11 +81,12 @@ class TraceableDB extends DoliDB
* Function to use to build INSERT, UPDATE or WHERE predica * Function to use to build INSERT, UPDATE or WHERE predica
* *
* @param int $param Date TMS to convert * @param int $param Date TMS to convert
* @return string Date in a string YYYYMMDDHHMMSS * @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);
} }
/** /**