title: Microsoft Graph API CalendarView request not working
body: <p>Here's my piece of code that handles and processes a specific date:</p>
  
  <pre><code>def o365_calendar_parse_url(self):
      if validate_params(self.parameters):
          data_url = self.o365_base_url + self.SUPPORTED_O365_INTENTS_URL['O365_CALENDAR_PARAMS']
          start_date = ''
          end_date = ''
          if self.parameters["date"]:
              split_date = self.parameters["date"].split("T")[0]
              start_date = split_date
              start_date = date_utilities.parse(start_date)
              print(start_date)
              end_date = start_date + datetime.timedelta(days=1)
              final_url = data_url.format(start_date, end_date)
              return final_url
          else:
              #other stuff
  </code></pre>
  
  <p>So the date being received is: <code>2018-10-18T12:00:00-06:00</code>, the idea is to remove the time from this date (because it's ambiguous), as I have no access to the API and therefore I have to deal with it the way it's being sent. After that, the idea is to parse that date into an ISO 8601 format so that the request made to graph API is done in the correct datetime format asked (ISO 8601). </p>
  
  <p>The resulting datetime is <code>2018-10-18 00:00:00</code>. When the request is made, the resulting URL is: </p>
  
  <p><code>https://graph.microsoft.com/v1.0/me/calendarView?startDateTime=2018-10-18%2000:00:00&amp;endDateTime=2018-10-19%2000:00:00&amp;$select=subject,bodyPreview,start,end,location,organizer,webLink</code></p>
  
  <p>Which brings back 1 event between the 18th and 19th. Seems to be fine, except there's actually 2 events between the <code>18th 00:00:00</code> and the <code>19th 00:00:00</code>.</p>
  
  <p>One of the events is on the 18th at 12pm and the other one is at 8:30pm. Can anyone tell me why the date range is not working? I'm trying to figure out why, but nothing occurs to me. </p>