From 2bfdfbe3cc094f5a7e33bda42ca259b8470f41c9 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 13 Feb 2024 15:00:41 +0000 Subject: do not feed null to TimeZoneUtil::getTimeZone() --- include/event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/event.php b/include/event.php index bb24030cf..dde5c405d 100644 --- a/include/event.php +++ b/include/event.php @@ -996,7 +996,7 @@ function event_import_ical($ical, $uid) { $ev['timezone'] = 'UTC'; // Try to get an usable olson format timezone - if($ev['adjust']) { + if($ev['adjust'] && isset($ical->DTSTART['TZID'])) { //TODO: we should pass the vcalendar to getTimeZone() to be more accurate // we do not have it here since parse_ical_file() is passing the vevent only. $timezone_obj = \Sabre\VObject\TimeZoneUtil::getTimeZone($ical->DTSTART['TZID']); -- cgit v1.2.3