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: