2
0
forked from Wavyzz/dolibarr

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 ($second< 0 || $second > 60) return '';
} }
if (method_exists('DateTime', 'getTimestamp'))
{
if (empty($gm) || $gm === 'server') if (empty($gm) || $gm === 'server')
{ {
$default_timezone=@date_default_timezone_get(); // Example 'Europe/Berlin' $default_timezone=@date_default_timezone_get(); // Example 'Europe/Berlin'
@@ -2029,12 +2027,6 @@ function dol_mktime($hour, $minute, $second, $month, $day, $year, $gm = false, $
//var_dump($date); //var_dump($date);
return $date; return $date;
} }
else
{
dol_print_error('', 'PHP version must be 5.4+');
return '';
}
}
/** /**