Fix problem on task creation with chrome for french browser.
This commit is contained in:
parent
8cb1818c4e
commit
c0a3606a59
@ -1053,7 +1053,11 @@ function dol_mktime($hour,$minute,$second,$month,$day,$year,$gm=false,$check=1)
|
|||||||
$default_timezone=@date_default_timezone_get();
|
$default_timezone=@date_default_timezone_get();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else $localtz = new DateTimeZone('UTC');
|
|
||||||
|
if (empty($localtz)) {
|
||||||
|
$localtz = new DateTimeZone('UTC');
|
||||||
|
}
|
||||||
|
|
||||||
$dt = new DateTime(null,$localtz);
|
$dt = new DateTime(null,$localtz);
|
||||||
$dt->setDate($year,$month,$day);
|
$dt->setDate($year,$month,$day);
|
||||||
$dt->setTime((int) $hour, (int) $minute, (int) $second);
|
$dt->setTime((int) $hour, (int) $minute, (int) $second);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user