mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
ApplicationBootstrap#setupTimezone(): ensure a vaild default timezone to be set in any case
This commit is contained in:
parent
6a23a641ac
commit
5d4cdfe13f
1 changed files with 1 additions and 5 deletions
|
|
@ -618,11 +618,7 @@ abstract class ApplicationBootstrap
|
|||
{
|
||||
$timezone = $this->detectTimeZone();
|
||||
if ($timezone === null || @date_default_timezone_set($timezone) === false) {
|
||||
$timezone = @date_default_timezone_get();
|
||||
if ($timezone === false) {
|
||||
$timezone = 'UTC';
|
||||
date_default_timezone_set($timezone);
|
||||
}
|
||||
date_default_timezone_set(@date_default_timezone_get());
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue