From c2301d3c2e9f2ffeeeeed3cfc0be5a87343f6a95 Mon Sep 17 00:00:00 2001 From: Marc416 Date: Wed, 9 Apr 2025 13:33:43 +0900 Subject: [PATCH 1/2] fix : remove "Z" after isoformat in python quickstart --- calendar/quickstart/quickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/quickstart/quickstart.py b/calendar/quickstart/quickstart.py index 1f1dc855..18b94995 100644 --- a/calendar/quickstart/quickstart.py +++ b/calendar/quickstart/quickstart.py @@ -53,7 +53,7 @@ def main(): service = build("calendar", "v3", credentials=creds) # Call the Calendar API - now = datetime.datetime.now(tz=datetime.timezone.utc).isoformat() + "Z" # 'Z' indicates UTC time + now = datetime.datetime.now(tz=datetime.timezone.utc).isoformat() print("Getting the upcoming 10 events") events_result = ( service.events() From 76e5b292be4f44dabaef1bf756ad7f2093345946 Mon Sep 17 00:00:00 2001 From: Marc416 Date: Wed, 9 Apr 2025 13:33:43 +0900 Subject: [PATCH 2/2] fix: remove invalid 'Z' from isoformat --- calendar/quickstart/quickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/quickstart/quickstart.py b/calendar/quickstart/quickstart.py index 1f1dc855..18b94995 100644 --- a/calendar/quickstart/quickstart.py +++ b/calendar/quickstart/quickstart.py @@ -53,7 +53,7 @@ def main(): service = build("calendar", "v3", credentials=creds) # Call the Calendar API - now = datetime.datetime.now(tz=datetime.timezone.utc).isoformat() + "Z" # 'Z' indicates UTC time + now = datetime.datetime.now(tz=datetime.timezone.utc).isoformat() print("Getting the upcoming 10 events") events_result = ( service.events()