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 ---------------------------------------------------------*/