I have a script that is meant to synchronize event listings from a database (primary scheduling application for my clubs resources) into google calendar for remote viewing.
This is the best way for me to get the information out there. The problem that I am having is that I am creating events for the hourly booking, but the summary event I am trying to create is an "All day" event. However, after the php script inserts that event, the last hourly event of the day disapears from monthly view, and the all day event shows up.
Both show in agenda view, the all day doesn't show in "day" view.
When I try to manually edit the event it doesn't let me because it is complaining that the event end day is wrong (it appears correct, but isn't and if i change it to another day and then back, everything works ok)
code is:
$sDate = date("Y-m-d", $strTime);
$eDate = date("Y-m-d", $strTime);
createEvent($eventTitle, $syncId, $sDate, $eDate);
calling:
$when->startTime = "{$startDate}T{$startTime}:00.000{$tzOffset}:00";
$when->endTime = "{$endDate}T{$endTime}:00.000{$tzOffset}:00";
$event->when = array($when);
$newEvent = $calendar->insertEvent($event, $calId);
Anyone have any experience with this?