From d18d17abedf77772c56cab0bb217e418a99ec7b2 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 24 Nov 2020 10:25:03 -0700 Subject: [PATCH] Calendar: Fix notifications not getting sent --- calendar/inc/class.calendar_boupdate.inc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index dde699fad9..ed2d523ec1 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -1039,7 +1039,14 @@ class calendar_boupdate extends calendar_bo // event is in user-time of current user, now we need to calculate the tz-difference to the notified user and take it into account if (!isset($part_prefs['common']['tz'])) $part_prefs['common']['tz'] = $GLOBALS['egw_info']['server']['server_timezone']; - $timezone = new DateTimeZone($part_prefs['common']['tz']); + try + { + $timezone = new DateTimeZone($part_prefs['common']['tz']); + } + catch(Exception $e) + { + $timezone = new DateTimeZone($GLOBALS['egw_info']['server']['server_timezone']); + } $timeformat = $part_prefs['common']['timeformat']; switch($timeformat) {