Roll back workaround to support pleroma

Fixed in previous commit.
This commit is contained in:
Ivan Habunek 2023-11-16 15:15:38 +01:00
parent fe48f9a17e
commit 2b8727bf09
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,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.replace('Z', '+00:00')).date()
return date.fromisoformat(value)
if get_origin(field_type) == list:
(inner_type,) = get_args(field_type)