export events as ical or csv calendar file #132

Merged
tobiasd merged 15 commits from cal into master 2013-06-17 20:44:31 +02:00
Showing only changes of commit 69065bfd10 - Show all commits

View file

@ -88,6 +88,8 @@ function cal_format_output ($r, $f, $tz)
header("Content-type: text/csv");
$o = '"Subject", "Start Date", "Start Time", "Description", "End Date", "End Time", "Location"' . PHP_EOL;
foreach ($r as $rr) {
// TODO the time / date entries don't include any information about the
// timezone the event is scheduled in :-/
$tmp1 = strtotime($rr['start']);
$tmp2 = strtotime($rr['finish']);
$time_format = "%H:%M:%S";