From aacb3f676358b0aaaff6883539a59554549314db Mon Sep 17 00:00:00 2001 From: Dmitrii Andreev Date: Sun, 17 Mar 2024 14:16:40 +0300 Subject: [PATCH] fixed deprecation --- src/rss_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rss_generator.py b/src/rss_generator.py index 5149426..9862d52 100644 --- a/src/rss_generator.py +++ b/src/rss_generator.py @@ -38,7 +38,7 @@ def generate_rss_feed(files, output_directory, server_host): with tag('guid', isPermaLink='false'): text(file_id) with tag('pubDate'): - pub_date = datetime.utcfromtimestamp(os.path.getctime(file_path)).strftime('%a, %d %b %Y %H:%M:%S UTC') + pub_date = datetime.fromtimestamp(os.path.getctime(file_path)).strftime('%a, %d %b %Y %H:%M:%S UTC') text(pub_date) return doc.getvalue()