From db492b6807ebf3820d8594957688614fa36511e0 Mon Sep 17 00:00:00 2001 From: Jona Heitzer Date: Sat, 18 Oct 2025 23:33:02 +0200 Subject: [PATCH] Update from deprecated utcnow() to now() --- irc-topic-bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):