mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-15 19:20:47 +01:00
fix stall with no/wrong server-timezone
This commit is contained in:
parent
d8bf9d6343
commit
7ebab3f83e
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user