switching date format to ISO 8601

This commit is contained in:
mb 2023-03-09 16:22:31 +01:00
parent ba2654cc8a
commit c4859ecd85

View File

@ -102,7 +102,7 @@ class Logbot(Bot):
if "@" in folder_name: # hacky if "@" in folder_name: # hacky
folder_name = self._parse_room_name(folder_name) folder_name = self._parse_room_name(folder_name)
feed_path = os.path.join(self.output, folder_name, "feed.rss.xml") feed_path = os.path.join(self.output, folder_name, "feed.rss.xml")
date = datetime.now().strftime("%a, %d %b %Y %H:%M:%S") date = datetime.now().isoformat()
print(date) print(date)
template = jinja2.Template(open("template.rss").read()) # self.feedtemplate would be useful to have in the conf template = jinja2.Template(open("template.rss").read()) # self.feedtemplate would be useful to have in the conf
with open(feed_path, "w") as out: with open(feed_path, "w") as out: