Calendar: Fix notifications not getting sent

This commit is contained in:
nathangray 2020-11-24 10:25:03 -07:00
parent 3e371ea51f
commit f17b82e3d9

View File

@ -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'];
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)
{