forked from varia/bots
switching date format of each post to ISO 8601 as well
This commit is contained in:
parent
c4859ecd85
commit
04b4574649
@ -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…
Reference in New Issue
Block a user