fixed deprecation

This commit is contained in:
Dmitrii Andreev
2024-03-17 14:16:40 +03:00
parent 43bbac67ee
commit aacb3f6763

View File

@@ -38,7 +38,7 @@ def generate_rss_feed(files, output_directory, server_host):
with tag('guid', isPermaLink='false'): with tag('guid', isPermaLink='false'):
text(file_id) text(file_id)
with tag('pubDate'): 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) text(pub_date)
return doc.getvalue() return doc.getvalue()