Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Sep 19, 2024
1 parent b59121f commit 64a1b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worldtimezone/extensions/world_clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 64a1b4f

Please sign in to comment.