This commit is contained in:
Amazed 2020-09-01 16:15:30 +02:00
parent f46208250d
commit d374bc8a9a

View File

@ -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_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)
almost_online_players.append(r)
else: