From 3afaad143beb7d50a928e4b9f11873e8645f5fd7 Mon Sep 17 00:00:00 2001 From: Hipstercat Date: Tue, 1 Sep 2020 16:16:46 +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 8f1f260..19300f3 100644 --- a/cogs/wynncraft/wynncraftcog.py +++ b/cogs/wynncraft/wynncraftcog.py @@ -304,7 +304,7 @@ class WynncraftCog(commands.Cog): for almost_online_player in almost_online_players: last_join_dt_utc = datetime.strptime(almost_online_player["data"][0]["meta"]["lastJoin"], "%Y-%m-%dT%H:%M:%S.%fZ") last_join_dt_local = utc_to_local(last_join_dt_utc) - mins = (datetime.now() - last_join_dt_local).total_seconds() // 60 + mins = (datetime.now(last_join_dt_local.tzinfo) - last_join_dt_local).total_seconds() // 60 s = ":grey_question: **%s** était connecté il y a %s minutes" % (almost_online_player["data"][0]["username"], mins) full_text += s + "\n" if not online_players and not almost_online_players: