Browse Source

switching date format of each post to ISO 8601 as well

master
mb 1 year ago
parent
commit
04b4574649
  1. 2
      LogBot/logbot.py

2
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:

Loading…
Cancel
Save