From 2b8727bf098ec34af9cf4cbc9f66fb4e4f8f6944 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Thu, 16 Nov 2023 15:15:38 +0100 Subject: [PATCH] Roll back workaround to support pleroma Fixed in previous commit. --- toot/entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toot/entities.py b/toot/entities.py index 1dc61cd..d5588fe 100644 --- a/toot/entities.py +++ b/toot/entities.py @@ -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)