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: