minupd
This commit is contained in:
parent
8c9f050e9e
commit
0074227b71
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue