title: Right time format of using timeMax retrieving Google Calendar Events in PHP?
body: <p>I was trying to retrieve Google calendar events using PHP for some analysing purposes. I used <code>singleEvents= True</code> settings to expand recurring events as single instances. In order to avoid retrieving unlimited recurring events, I tried to set the event start upper bound to 2015-06-01.</p>
  
  <p>Here is the code I was using: </p>
  
  <pre><code>$eventList = $cal-&gt;events-&gt;listEvents($tempCal["id"], array(maxResults   =&gt;5000,singleEvents =&gt; True,timeMax =&gt; '2015-06-01T00:00:00-04:00'));
  </code></pre>
  
  <p>But it seems the timeMax parameter does not work. </p>
  
  <p>I tried other time format '2015-06-01T00:00:00Z' and it does not work either. </p>
  
  <p>However, I tried the same string using web browser and it retrieved all events before 2015-06-01 using <a href="https://developers.google.com/google-apps/calendar/v3/reference/events/list" rel="nofollow">https://developers.google.com/google-apps/calendar/v3/reference/events/list</a> </p>
  
  <p>What was wrong with my timeMax format?</p>