mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
php is > 5.4
This commit is contained in:
@@ -1984,8 +1984,6 @@ function dol_mktime($hour, $minute, $second, $month, $day, $year, $gm = false, $
|
||||
if ($second< 0 || $second > 60) return '';
|
||||
}
|
||||
|
||||
if (method_exists('DateTime', 'getTimestamp'))
|
||||
{
|
||||
if (empty($gm) || $gm === 'server')
|
||||
{
|
||||
$default_timezone=@date_default_timezone_get(); // Example 'Europe/Berlin'
|
||||
@@ -2028,12 +2026,6 @@ function dol_mktime($hour, $minute, $second, $month, $day, $year, $gm = false, $
|
||||
$date=$dt->getTimestamp(); // should include daylight saving time
|
||||
//var_dump($date);
|
||||
return $date;
|
||||
}
|
||||
else
|
||||
{
|
||||
dol_print_error('', 'PHP version must be 5.4+');
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user