timezones!
This commit is contained in:
parent
f307fe8108
commit
9b43cab47d
1 changed files with 1 additions and 1 deletions
2
main.py
2
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue