From 7ebab3f83e3b3ed67ff1bad8ab079d7153233102 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 17 May 2023 10:08:44 +0200 Subject: [PATCH] fix stall with no/wrong server-timezone --- api/src/DateTime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/DateTime.php b/api/src/DateTime.php index 104ee8f9c9..1f35571272 100644 --- a/api/src/DateTime.php +++ b/api/src/DateTime.php @@ -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'); }