diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index c46d3adec0..6f18d77ac2 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -309,8 +309,16 @@ class calendar_ical extends calendar_boupdate if (!isset(self::$tz_cache[$event['tzid']])) { + try { self::$tz_cache[$event['tzid']] = calendar_timezones::DateTimeZone($event['tzid']); } + catch (Exception $e) { + // log unknown timezones + if (!empty($event['tzid'])) _egw_log_exception($e); + // default for no timezone and unkown to user timezone + self::$tz_cache[$event['tzid']] = Api\DateTime::$user_timezone; + } + } if ($this->so->isWholeDay($event)) $event['whole_day'] = true;