channel_log timestamps should be yyyy-mm-dd
This commit is contained in:
parent
5c249ac6d6
commit
005334e2be
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue