Uncaught exception: Exception: DateTimeZone::__construct(): Unknown or bad timezone (UTC+1) #1417

This commit is contained in:
the-djmaze 2024-02-04 23:48:58 +01:00
parent be8d302b82
commit c04a5da865

View file

@ -57,6 +57,10 @@ class Application extends \RainLoop\Config\AbstractConfig
}
}
if (!\in_array($this->Get('logs', 'time_zone', ''), \DateTimeZone::listIdentifiers())) {
$this->Set('logs', 'time_zone', 'UTC');
}
return $bResult;
}