switching date format of each post to ISO 8601 as well

This commit is contained in:
mb 2023-03-09 16:31:25 +01:00
parent c4859ecd85
commit 04b4574649

View File

@ -121,7 +121,7 @@ class Logbot(Bot):
"""Save new entry to database.""" """Save new entry to database."""
keys = [x for x in self.db[message.room]["messages"].keys()] keys = [x for x in self.db[message.room]["messages"].keys()]
keys.sort(key=int) keys.sort(key=int)
date = datetime.now().strftime("%a, %d %b %Y %H:%M:%S") date = datetime.now().isoformat()
if not keys: if not keys:
new_key = "0" new_key = "0"
else: else: