From b2ac1bca2994c08ea48aad167551a49b69f7e785 Mon Sep 17 00:00:00 2001 From: Elliott Jin Date: Mon, 27 Feb 2017 22:26:51 -0800 Subject: [PATCH] Clean up timestamp formatting in Google Calendar bot. --- integrations/google/google-calendar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/google/google-calendar b/integrations/google/google-calendar index ddbab34..17b5a0b 100755 --- a/integrations/google/google-calendar +++ b/integrations/google/google-calendar @@ -115,7 +115,7 @@ def populate_events(): creds = credentials.authorize(httplib2.Http()) service = discovery.build('calendar', 'v3', http=creds) - now = datetime.datetime.utcnow().isoformat() + 'Z' # 'Z' indicates UTC time + now = datetime.datetime.now(pytz.utc).isoformat() feed = service.events().list(calendarId=options.calendarID, timeMin=now, maxResults=5, singleEvents=True, orderBy='startTime').execute()