fix
This commit is contained in:
parent
f46208250d
commit
d374bc8a9a
@ -219,7 +219,7 @@ class WynncraftCog(commands.Cog):
|
|||||||
last_join_dt_utc = datetime.strptime(r["data"][0]["meta"]["lastJoin"], "%Y-%m-%dT%H:%M:%S.%fZ")
|
last_join_dt_utc = datetime.strptime(r["data"][0]["meta"]["lastJoin"], "%Y-%m-%dT%H:%M:%S.%fZ")
|
||||||
last_join_dt_local = utc_to_local(last_join_dt_utc)
|
last_join_dt_local = utc_to_local(last_join_dt_utc)
|
||||||
|
|
||||||
if last_join_dt_local + timedelta(minutes=10) > datetime.now():
|
if last_join_dt_local + timedelta(minutes=10) > datetime.now(last_join_dt_local.tzinfo):
|
||||||
await self._log("%s is ALMOST online" % member_name)
|
await self._log("%s is ALMOST online" % member_name)
|
||||||
almost_online_players.append(r)
|
almost_online_players.append(r)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user