This commit is contained in:
xdrm-brackets 2017-09-12 23:12:21 +02:00
parent 8c9f050e9e
commit 0074227b71
1 changed files with 4 additions and 4 deletions

View File

@ -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";