aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-02-13 15:00:41 +0000
committerMario <mario@mariovavti.com>2024-02-13 15:00:41 +0000
commit2bfdfbe3cc094f5a7e33bda42ca259b8470f41c9 (patch)
tree3827c06ad88e05c5f492437bfb49a48e3654decb
parent9a85421a0e0c9b8d0c29c57ad9888defcf9084e1 (diff)
downloadvolse-hubzilla-2bfdfbe3cc094f5a7e33bda42ca259b8470f41c9.tar.gz
volse-hubzilla-2bfdfbe3cc094f5a7e33bda42ca259b8470f41c9.tar.bz2
volse-hubzilla-2bfdfbe3cc094f5a7e33bda42ca259b8470f41c9.zip
do not feed null to TimeZoneUtil::getTimeZone()
-rw-r--r--include/event.php2
1 files changed, 1 insertions, 1 deletions
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']);