timezones!

This commit is contained in:
bMorgan01 2021-11-29 15:37:09 -07:00
parent f307fe8108
commit 9b43cab47d

View file

@ -416,7 +416,7 @@ async def status_task(sid: int):
try: try:
oldNames = getMCNames(sid, cursor) oldNames = getMCNames(sid, cursor)
players, max, names, _ = await getStatus(mc) 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) currTime = datetime.utcnow().replace(tzinfo=timezone.utc)
if lastTime is None: if lastTime is None: