Update from deprecated utcnow() to now()

This commit is contained in:
2025-10-18 23:33:02 +02:00
parent 09c37d2bbb
commit db492b6807
+1 -1
View File
@@ -39,7 +39,7 @@ topic_pattern = re.compile(TOPIC_REGEX)
def log(level, msg): def log(level, msg):
if level == "." and not DEBUG_LOG: if level == "." and not DEBUG_LOG:
return 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) print(f"[{ts}] [{level}] {msg}", flush=True)
def sendmail(subject, message): def sendmail(subject, message):