fix stall with no/wrong server-timezone

This commit is contained in:
ralf 2023-05-17 10:08:44 +02:00
parent d8bf9d6343
commit 7ebab3f83e

View File

@ -613,12 +613,12 @@ class DateTime extends \DateTime
try {
self::$server_timezone = new DateTimeZone($GLOBALS['egw_info']['server']['server_timezone']);
}
catch(\Exception $e)
catch(\Throwable $e)
{
try {
self::$server_timezone = new DateTimeZone(date_default_timezone_get());
}
catch(\Exception $e)
catch(\Throwable $e)
{
self::$server_timezone = new DateTimeZone('Europe/Berlin');
}