Freebusy should use vComponent rather than the deprecated iCalComponent

This commit is contained in:
Andrew McMillan 2013-09-24 15:43:00 +02:00
parent 8b52d69e1e
commit f074f214d0

View File

@ -6,7 +6,7 @@
* a freebusy GET request.
*/
include_once('iCalendar.php');
include_once('vCalendar.php');
include_once('RRule-v2.php');
@ -79,7 +79,7 @@ function get_freebusy( $path_match, $range_start, $range_end, $bin_privs = null
}
}
$freebusy = new iCalComponent();
$freebusy = new vComponent();
$freebusy->SetType('VFREEBUSY');
$freebusy->AddProperty('DTSTAMP', date('Ymd\THis\Z'));
$freebusy->AddProperty('DTSTART', $range_start->UTC());