Add in controversial timezone workaround

pull/405/head
Sandra Snan 2023-09-24 00:42:46 +02:00
rodzic c821ab999b
commit 6a22e2345b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -394,7 +394,7 @@ def _convert(field_type, value):
return datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f%z")
if field_type == date:
return datetime.fromisoformat(value).date()
return datetime.fromisoformat(value.replace('Z', '+00:00')).date()
if get_origin(field_type) == list:
(inner_type,) = get_args(field_type)