mirror of
https://github.com/ihabunek/toot
synced 2024-12-23 07:27:12 +01:00
Add in controversial timezone workaround
This commit is contained in:
parent
c821ab999b
commit
6a22e2345b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user