[Bugfix] Wrong ISO time format in Python quickstart for Calendar API#2116
[Bugfix] Wrong ISO time format in Python quickstart for Calendar API#2116Marc416 wants to merge 3 commits into
Conversation
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).
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Thank you for info me. |
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).
|
check this |
Hi team,
issue #2115
While testing the Calendar API using the Python quickstart guide, I noticed an issue in the time formatting line.
The current code is:
However, this results in an invalid ISO 8601 timestamp like:
makefile
Appending "Z" after a timezone-aware ISO string (which already includes +00:00) makes the timestamp invalid. This can cause unexpected errors when calling the API.
It should be corrected to:
When the incorrect format is used, it leads to errors like this:
{ "error": { "code": 403, "message": "Method doesn't allow unregistered callers (callers without established identity)...", "status": "PERMISSION_DENIED" } }Thanks!