From 005334e2bec04a7b6aa061449849d2ffeb6ea83d Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 29 Jan 2020 15:52:06 +0000 Subject: [PATCH] channel_log timestamps should be yyyy-mm-dd --- modules/channel_log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/channel_log.py b/modules/channel_log.py index e217f981..0239ba1d 100644 --- a/modules/channel_log.py +++ b/modules/channel_log.py @@ -21,7 +21,8 @@ class Module(ModuleManager.BaseModule): def _log(self, server, channel, line): if self._enabled(server, channel): with open(self._file(str(server), str(channel)), "a") as log: - timestamp = datetime.datetime.now().strftime("%x %X") + timestamp = utils.datetime.datetime_human( + datetime.datetime.now()) log.write("%s %s\n" % (timestamp, line)) @utils.hook("formatted.message.channel")