From d374bc8a9ac436f5521649b9217c89e8de0849e1 Mon Sep 17 00:00:00 2001 From: Hipstercat Date: Tue, 1 Sep 2020 16:15:30 +0200 Subject: [PATCH] fix --- cogs/wynncraft/wynncraftcog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/wynncraft/wynncraftcog.py b/cogs/wynncraft/wynncraftcog.py index acdb6c5..8f1f260 100644 --- a/cogs/wynncraft/wynncraftcog.py +++ b/cogs/wynncraft/wynncraftcog.py @@ -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: