Use utils.ISO8601_PARSE in format_activity
This commit is contained in:
parent
a9a3ad7abd
commit
0a5ebd0cf4
2 changed files with 1 additions and 3 deletions
|
@ -119,7 +119,7 @@ class Module(ModuleManager.BaseModule):
|
|||
event["channel"].topic, event["channel"])
|
||||
|
||||
unix_dt = datetime.datetime.utcfromtimestamp(event["set_at"])
|
||||
dt = datetime.datetime.strftime(unix_dt, DATETIME_FORMAT)
|
||||
dt = datetime.datetime.strftime(unix_dt, utils.ISO8601_PARSE)
|
||||
line = "topic set at %s" % dt
|
||||
self._event("topic-timestamp", event["server"], line,
|
||||
event["channel"].name)
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
import datetime
|
||||
from src import EventManager, ModuleManager, utils
|
||||
|
||||
DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
|
||||
|
||||
class Module(ModuleManager.BaseModule):
|
||||
def _print_line(self, target, context, line):
|
||||
formatted_line = utils.irc.parse_format(line)
|
||||
|
|
Loading…
Reference in a new issue