title: Updating and event start/end time Google Calendar, v3 api
body: <p>I am using the Google API PHP client with Google Calendar.</p>
  
  <p>I am having now problems creating the event, but when I try to update the datetime start/end the call just fails and the event is not updated.</p>
  
  <p>I have successfully updated just the summary, but have been unable to update the start/end times.</p>
  
  <pre><code>private function _update_google_event($eventId = '', $updateData = array())
  {
  if(strlen($eventId) == 0 || empty($updateData)) return false;
  
  $calendar = $this-&gt;_get_gcal();
  //First get the event
  $event = $calendar-&gt;events-&gt;get($this-&gt;calendar_id, $eventId);
  var_dump($event-&gt;getId());
  
  if(isset($updateData['summary'])) {
    $event-&gt;setSummary($updateData['summary']);
  }
  if(isset($updateData['location'])) {
    $event-&gt;setLocation($updateData['location']);
  }
  var_dump($event-&gt;getEnd());
  /*
  if(isset($updateData['start'])) {
    $start = new Google_Service_Calendar_EventDateTime();
    $start-&gt;setDateTime($updateData['start']);
    $event-&gt;setStart($start);
  }
  */
  if(isset($updateData['end'])) {
    var_dump(new Google_EventDateTime());
    $end = new Google_Service_Calendar_EventDateTime();
    var_dump($end-&gt;setDateTime($updateData['end']));
    $end-&gt;setDateTime($updateData['end']);
    var_dump($event-&gt;setEnd($end));
  }
  
  //Update Sequence
  $event-&gt;setSequence($event-&gt;getSequence() + 1);
  
  echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n";
  //var_dump($event);
  //Send the update request
  //$updatedEvent = new Google_Service_Calendar_Event($calendar-&gt;events-&gt;update($this-&gt;calendar_id, $event-&gt;getId(), $event));
  $updatedEvent = $calendar-&gt;events-&gt;update($this-&gt;calendar_id, $event-&gt;getId(), $event);
  echo $updatedEvent-&gt;getUpdated();
  
  return false;
  }
  </code></pre>
  
  <p>I have seen some stack overflow questions on updating events that mentioned needing to update the sequence number, so I have done so, but it does not change anything for start/end time.</p>
  
  <p>Any tips/pointers would be much appreciated.
  If any other details can help, please just ask.</p>
  
  <p>Thank you!</p>