From 29d77f2674d49cb647609bc74228acf2f22e8bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=A4=80=ED=9D=AC?= <51898482+Marc416@users.noreply.github.com> Date: Mon, 7 Apr 2025 23:13:47 +0900 Subject: [PATCH 1/2] [Bugfix] Wrong ISO time format in Python quickstart for Calendar API bugfix : remove "Z" after isoformat() --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/googleworkspace/python-samples/tree/main?shareId=XXXX-XXXX-XXXX-XXXX). --- 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 856f44b10cf02c1b4f12fe5fc3e3b4a566573ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=A4=80=ED=9D=AC?= <51898482+Marc416@users.noreply.github.com> Date: Mon, 7 Apr 2025 23:13:47 +0900 Subject: [PATCH 2/2] fix : remove "Z" after isoformat in python quickstart bugfix : remove "Z" after isoformat() --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/googleworkspace/python-samples/tree/main?shareId=XXXX-XXXX-XXXX-XXXX). --- 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()