Use utils.ISO8601_PARSE in format_activity

This commit is contained in:
jesopo 2019-03-05 09:30:10 +00:00
parent a9a3ad7abd
commit 0a5ebd0cf4
2 changed files with 1 additions and 3 deletions

View file

@ -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)

View file

@ -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)