From 9b43cab47d2a8342c83c0bcc5c13b4f5b7125f93 Mon Sep 17 00:00:00 2001 From: bMorgan01 Date: Mon, 29 Nov 2021 15:37:09 -0700 Subject: [PATCH] timezones! --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 3a7bf01..b8646f1 100644 --- a/main.py +++ b/main.py @@ -416,7 +416,7 @@ async def status_task(sid: int): try: oldNames = getMCNames(sid, cursor) players, max, names, _ = await getStatus(mc) - lastTime = getMCQueryTime(sid, cursor) + lastTime = getMCQueryTime(sid, cursor).replace(tzinfo=timezone.utc) currTime = datetime.utcnow().replace(tzinfo=timezone.utc) if lastTime is None: