From 04b4574649fb0424af043873e67f9a248c8dab84 Mon Sep 17 00:00:00 2001 From: mb Date: Thu, 9 Mar 2023 16:31:25 +0100 Subject: [PATCH] switching date format of each post to ISO 8601 as well --- LogBot/logbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 4ca3804..8c1ce0c 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -121,7 +121,7 @@ class Logbot(Bot): """Save new entry to database.""" keys = [x for x in self.db[message.room]["messages"].keys()] keys.sort(key=int) - date = datetime.now().strftime("%a, %d %b %Y %H:%M:%S") + date = datetime.now().isoformat() if not keys: new_key = "0" else: