diff --git a/htdocs/core/db/DoliDB.class.php b/htdocs/core/db/DoliDB.class.php index c7e08e69a6e..0caba62bf2d 100644 --- a/htdocs/core/db/DoliDB.class.php +++ b/htdocs/core/db/DoliDB.class.php @@ -77,6 +77,18 @@ abstract class DoliDB implements Database return 'IF('.$test.','.$resok.','.$resko.')'; } + /** + * 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 string $param Date TMS to convert + * @return string Date in a string YYYYMMDDHHMMSS + */ + function idate($param) + { + return dol_print_date($param,"%Y%m%d%H%M%S"); + } + /** * Define sort criteria of request * diff --git a/htdocs/core/db/mysql.class.php b/htdocs/core/db/mysql.class.php index 4ce71647c4a..d1d86711513 100644 --- a/htdocs/core/db/mysql.class.php +++ b/htdocs/core/db/mysql.class.php @@ -518,19 +518,6 @@ class DoliDBMysql extends DoliDB return addslashes($stringtoencode); } - - /** - * 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 string $param Date TMS to convert - * @return string Date in a string YYYYMMDDHHMMSS - */ - function idate($param) - { - return dol_print_date($param,"%Y%m%d%H%M%S"); - } - /** * Return last request executed with query() * diff --git a/htdocs/core/db/mysqli.class.php b/htdocs/core/db/mysqli.class.php index 4daefe3a397..f4d8d6f6a44 100644 --- a/htdocs/core/db/mysqli.class.php +++ b/htdocs/core/db/mysqli.class.php @@ -529,19 +529,6 @@ class DoliDBMysqli extends DoliDB return addslashes($stringtoencode); } - /** - * 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 string $param Date TMS to convert - * @return string Date in a string YYYYMMDDHHMMSS - */ - function idate($param) - { - return dol_print_date($param,"%Y%m%d%H%M%S"); - } - - /** * Return last request executed with query() * diff --git a/htdocs/core/db/sqlite.class.php b/htdocs/core/db/sqlite.class.php index f3c52762b0a..4695bb15807 100644 --- a/htdocs/core/db/sqlite.class.php +++ b/htdocs/core/db/sqlite.class.php @@ -662,18 +662,6 @@ class DoliDBSqlite extends DoliDB return $this->db->quote($stringtoencode); } - /** - * Convert (by PHP) a GM Timestamp date into a PHP server TZ 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 YYYYMMDDHHMMSS - */ - function idate($param) - { - return dol_print_date($param,"%Y%m%d%H%M%S"); - } - /** * Renvoie la derniere requete soumise par la methode query() *