From b1be0d1348f99444d2d4b2dcfe0ecfb819a5f208 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 12 Sep 2017 23:28:10 +0200 Subject: [PATCH] ... --- build/service/CalendarExtractor.php | 5 +++-- build/service/Updater.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build/service/CalendarExtractor.php b/build/service/CalendarExtractor.php index 41eeed1..81e7b0d 100644 --- a/build/service/CalendarExtractor.php +++ b/build/service/CalendarExtractor.php @@ -289,9 +289,10 @@ $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 .= "UID:$start_t-univ-pau-ics\n"; // required $RAW .= "SUMMARY:$type\n"; - $RAW .= "END:VEVENT\n\n"; + $RAW .= "CATEGORIES: UPPA Calendar\n"; + $RAW .= "END:VEVENT\n"; } } diff --git a/build/service/Updater.php b/build/service/Updater.php index 9323f45..9712abf 100644 --- a/build/service/Updater.php +++ b/build/service/Updater.php @@ -43,7 +43,7 @@ =========================================================*/ foreach($this->config->getDiplomes() as $d_id=>$d_name){ - file_put_contents(__ROOT__."/tmp/$d_id.ics", "BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//xdrn.io//NONSGML v1.0//EN\nMETHOD:PUBLISH\nX-WR-CALNAME: UPPA $d_name\n"); + file_put_contents(__ROOT__."/tmp/$d_id.ics", "BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//xdrm.io//NONSGML v1.0//EN\nMETHOD:PUBLISH\nX-WR-CALNAME: UPPA $d_name\n"); /* (1) Browse each date ---------------------------------------------------------*/