From 64a1b4f8852940cb1f91dba6751d96a4955bb7b0 Mon Sep 17 00:00:00 2001 From: Xavier Mitault Date: Thu, 19 Sep 2024 13:28:29 +0100 Subject: [PATCH] Fix --- worldtimezone/extensions/world_clock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldtimezone/extensions/world_clock.py b/worldtimezone/extensions/world_clock.py index c36e32b..ebbbb3e 100644 --- a/worldtimezone/extensions/world_clock.py +++ b/worldtimezone/extensions/world_clock.py @@ -149,7 +149,7 @@ async def convertIt( now = pytz.timezone(timezone).localize(now) for member_info in ctx.bot.d.data.get_members_list(ctx.guild_id): if member_info.tz != "": - user_ = ctx.bot.cache.get_member(ctx.guild_id, int(u)) + user_ = ctx.bot.cache.get_member(ctx.guild_id, int(member_info.discord_id)) new_tz = pytz.timezone(member_info.tz) new_now = now.astimezone(new_tz) message += f"**{user_.display_name}**: {new_now} [{member_info.tz}]\n"