I have an issue with the dateTime start/end when I add an event to my calendar.
Here is the code I use:
$event = new Google_Service_Calendar_Event(array(
'summary' => 'event title',
'description' => 'event description',
'start' => array(
'dateTime' => '2017-02-05T00:00:00-08:00',
'timeZone' => 'Europe/Paris',
),
'end' => array(
'dateTime' => '2017-02-05T00:00:00-13:00',
'timeZone' => 'Europe/Paris',
)
));
$event = $cal->events->insert($room_calendar_id, $event);
This code should add an event in my calendar, starting at 08:00, ending 13:00. Fact is, the event is added starting at 10:00, ending at 15:00. It add 2 hours to the dateTime.
Do you think that the error comes from the timezone ?