From 4218cf29301f6819c986fb9b7d6af810b12fa2d1 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 13 Nov 2022 12:28:53 +0200 Subject: Add datetime parsing for edited_at --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 08a91a0..d502597 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -3270,7 +3270,7 @@ class Mastodon: """ Parse dates in certain known json fields, if possible. """ - known_date_fields = ["created_at", "week", "day", "expires_at", "scheduled_at", "updated_at", "last_status_at", "starts_at", "ends_at", "published_at"] + known_date_fields = ["created_at", "week", "day", "expires_at", "scheduled_at", "updated_at", "last_status_at", "starts_at", "ends_at", "published_at", "edited_at"] for k, v in json_object.items(): if k in known_date_fields: if v != None: -- cgit v1.2.3