|
|
|
@ -37,7 +37,7 @@ function user_ical() {
|
|
|
|
|
foreach ($ical_shifts as $shift) {
|
|
|
|
|
$html .= "BEGIN:VEVENT\r\n";
|
|
|
|
|
$html .= "UID:" . md5($shift['start'] . $shift['end'] . $shift['name']) . "\r\n";
|
|
|
|
|
$html .= "SUMMARY:" . str_replace("\n", "\\n", $shift['name']) . "\r\n";
|
|
|
|
|
$html .= "SUMMARY:" . str_replace("\n", "\\n", $shift['name']) . " (" . str_replace("\n", "\\n", $shift['title']) . ")\r\n";
|
|
|
|
|
if(isset($shift['Comment']))
|
|
|
|
|
$html .= "DESCRIPTION:" . str_replace("\n", "\\n", $shift['Comment']) . "\r\n";
|
|
|
|
|
$html .= "DTSTART;TZID=Europe/Berlin:" . date("Ymd\THis", $shift['start']) . "\r\n";
|
|
|
|
|