mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
bf5849a769
commit
28bd27d904
@ -410,7 +410,7 @@ class Web extends ApplicationBootstrap
|
||||
*/
|
||||
protected function setupTimezone()
|
||||
{
|
||||
$userTimeZone = $this->user->getPreferences()->get('app.timezone');
|
||||
$userTimeZone = $this->user === null ? null : $this->user->getPreferences()->get('app.timezone');
|
||||
|
||||
try {
|
||||
$tz = new DateTimeZone($userTimeZone);
|
||||
|
Loading…
x
Reference in New Issue
Block a user