From ad34c7df3faed036a2934ab573d6d985cffdfa31 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 22 Dec 2022 23:56:29 +0200 Subject: [PATCH] fix 500 error --- files/routes/feeds.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/routes/feeds.py b/files/routes/feeds.py index 9eed9cc8f..792fa71ad 100644 --- a/files/routes/feeds.py +++ b/files/routes/feeds.py @@ -1,4 +1,4 @@ -from datetime import datetime +import datetime from yattag import Doc @@ -48,12 +48,12 @@ def feeds_user(sort='hot', t='all'): with tag("updated"): if (post.edited_utc): - text(datetime.utcfromtimestamp(post.edited_utc).isoformat()+"Z") + text(datetime.datetime.utcfromtimestamp(post.edited_utc).isoformat()+"Z") else: - text(datetime.utcfromtimestamp(post.created_utc).isoformat()+"Z") + text(datetime.datetime.utcfromtimestamp(post.created_utc).isoformat()+"Z") with tag("published"): - text(datetime.utcfromtimestamp(post.created_utc).isoformat()+"Z") + text(datetime.datetime.utcfromtimestamp(post.created_utc).isoformat()+"Z") with tag("author"): with tag("name"):