aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/channel_log.py3
1 files changed, 2 insertions, 1 deletions
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")