From af7b82dfdffc4d70ae5d0f0f27f88274571c6ef3 Mon Sep 17 00:00:00 2001 From: agessaman Date: Thu, 16 Jul 2026 10:46:46 -0700 Subject: [PATCH] Fix remaining Python 3.10 UTC usage --- modules/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core.py b/modules/core.py index 1c3f9e5..965b15b 100644 --- a/modules/core.py +++ b/modules/core.py @@ -462,7 +462,7 @@ class MeshCoreBot: ) if self._send_consecutive_failures >= threshold and not self.is_radio_offline: self._radio_offline = True - since = _dt.datetime.now(_dt.UTC).isoformat() + since = _dt.datetime.now(_dt.timezone.utc).isoformat() self.logger.critical( "RADIO OFFLINE: %d consecutive send timeouts (threshold %d). " "Bot will suppress further outbound sends until one succeeds. " @@ -1662,7 +1662,7 @@ long_jokes = false self.db_manager.set_metadata('bot.radio_zombie', 'true') self.db_manager.set_metadata( 'bot.radio_zombie_since', - _dt.datetime.now(_dt.UTC).isoformat(), + _dt.datetime.now(_dt.timezone.utc).isoformat(), ) except Exception: pass