From 0074227b715fe6623c490575070709d1d64450c2 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 12 Sep 2017 23:12:21 +0200 Subject: [PATCH] minupd --- build/service/CalendarExtractor.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/service/CalendarExtractor.php b/build/service/CalendarExtractor.php index f810414..830f742 100644 --- a/build/service/CalendarExtractor.php +++ b/build/service/CalendarExtractor.php @@ -251,7 +251,7 @@ $ts = strtotime("${day} $hour:$min:00"); /* (3) Return GMT date */ - return gmdate("Ymd\THis", $ts); + return gmdate("Ymd\THis\Z", $ts); } @@ -286,9 +286,9 @@ ---------------------------------------------------------*/ foreach($events as $start_t=>$stop_t){ $RAW .= "BEGIN:VEVENT\n"; - $RAW .= "DTSTAMP:${start_t}Z\n"; // required - $RAW .= "DTSTART:${start_t}Z\n"; - $RAW .= "DTEND:${stop_t}Z\n"; + $RAW .= "DTSTAMP:".gmdate("Ymd\THis\Z", time())."\n"; // required + $RAW .= "DTSTART:${start_t}\n"; + $RAW .= "DTEND:${stop_t}\n"; $RAW .= "UID:$start_t@xdrm.io\n"; // required $RAW .= "SUMMARY:$type\n"; $RAW .= "END:VEVENT\n\n";