php is > 5.4

This commit is contained in:
Frédéric FRANCE
2019-11-01 15:21:21 +01:00
parent e3b5be7475
commit da238e94e1

View File

@@ -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 '';
}
}