diff --git a/htdocs/core/db/sqlite.class.php b/htdocs/core/db/sqlite.class.php
index 84b8742eb75e51f6eb072decda2164e052a5b6d7..36f583011e4bde94581388b8e20fe1a581a96e4d 100644
--- a/htdocs/core/db/sqlite.class.php
+++ b/htdocs/core/db/sqlite.class.php
@@ -683,7 +683,7 @@ class DoliDBSqlite extends DoliDB
* @param int $gm 1=Input informations are GMT values, otherwise local to server TZ
* @return date Date TMS
*/
- function jdate($string, $gmt=false)
+ function jdate($string, $gm=false)
{
$string=preg_replace('/([^0-9])/i','',$string);
$tmp=$string.'000000';