diff --git a/irc-topic-bot.py b/irc-topic-bot.py index 5458789..6b047ca 100644 --- a/irc-topic-bot.py +++ b/irc-topic-bot.py @@ -39,7 +39,7 @@ topic_pattern = re.compile(TOPIC_REGEX) def log(level, msg): if level == "." and not DEBUG_LOG: return - ts = datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S UTC") + ts = datetime.now().strftime("%Y-%m-%d %H:%M:%S UTC") print(f"[{ts}] [{level}] {msg}", flush=True) def sendmail(subject, message):