From c4859ecd85a4d59e4e8d2b094dc8064fb5e1d113 Mon Sep 17 00:00:00 2001 From: mb Date: Thu, 9 Mar 2023 16:22:31 +0100 Subject: [PATCH] switching date format to ISO 8601 --- LogBot/logbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 5f685d7..4ca3804 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -102,7 +102,7 @@ class Logbot(Bot): if "@" in folder_name: # hacky folder_name = self._parse_room_name(folder_name) 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) template = jinja2.Template(open("template.rss").read()) # self.feedtemplate would be useful to have in the conf with open(feed_path, "w") as out: