From 494ff44a6984d2be3a40e276c728a33c124f5196 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 5 Jun 2024 10:04:16 +0000 Subject: adjusting to the wrong direction when exporting ical and do not use Z because timezone is attached --- include/event.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/event.php b/include/event.php index ef73fc9b5..3beb15b7a 100644 --- a/include/event.php +++ b/include/event.php @@ -272,9 +272,9 @@ function format_event_ical($ev) { if($ev['adjust']) { if($ev['dtstart']) - $o .= "\r\nDTSTART$tzid:" . datetime_convert($tz,'UTC', $ev['dtstart'],'Ymd\\THis\\Z'); + $o .= "\r\nDTSTART$tzid:" . datetime_convert('UTC', $tz, $ev['dtstart'],'Ymd\\THis'); if($ev['dtend'] && ! $ev['nofinish']) - $o .= "\r\nDTEND$tzid:" . datetime_convert($tz,'UTC', $ev['dtend'],'Ymd\\THis\\Z'); + $o .= "\r\nDTEND$tzid:" . datetime_convert('UTC', $tz, $ev['dtend'],'Ymd\\THis'); } else { if($ev['dtstart']) -- cgit v1.2.3