Google Calendar - Strip 'Z' from datetimes (#366)
This commit is contained in:
parent
0bcbaa380a
commit
89f3ab13ce
2 changed files with 2 additions and 1 deletions
|
|
@ -64,6 +64,7 @@ def parse_datetime(datetime_str: str, time_zone: str) -> datetime:
|
||||||
Raises:
|
Raises:
|
||||||
ValueError: If the datetime string is not in the correct format.
|
ValueError: If the datetime string is not in the correct format.
|
||||||
"""
|
"""
|
||||||
|
datetime_str = datetime_str.upper().strip().rstrip("Z")
|
||||||
try:
|
try:
|
||||||
dt = datetime.fromisoformat(datetime_str)
|
dt = datetime.fromisoformat(datetime_str)
|
||||||
if dt.tzinfo is None:
|
if dt.tzinfo is None:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "arcade_google"
|
name = "arcade_google"
|
||||||
version = "1.1.0"
|
version = "1.1.1"
|
||||||
description = "Arcade.dev LLM tools for Google Workspace"
|
description = "Arcade.dev LLM tools for Google Workspace"
|
||||||
authors = ["Arcade <dev@arcade.dev>"]
|
authors = ["Arcade <dev@arcade.dev>"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue