I am trying to assign the US/Eastern timezone for a command on my discord bot, but when I convert timezones it doesn't seem to change from naive.
@command(name = "info",brief = "gets some info on a member")
async def info(self,ctx, member: Optional[Member]):
if not member:
member = ctx.author
embed = Embed(title = '',description = member.mention, inline = True,color = member.color)
embed.set_author(name = member,icon_url= member.avatar_url)
embed.add_field(name = "Joined", value = timezone("US/Eastern").localize(member.joined_at).strftime("%a, %b %d, %Y %I:%M %p))
embed.add_field(name = "Account Created",value = timezone("US/Eastern").localize(member.created_at).strftime("%a, %b %d, %Y %I:%M %p")
embed.set_thumbnail(url = member.avatar_url)
embed.add_field(name = f"Roles[{len(member.roles)-1}]",value = ' '.join(str(r.mention) for r in member.roles[:0:-1]) if len(member.roles)>1 else "None", inline = False)
await ctx.send(embed = embed)
The command itself works fine and there's not errors being thrown but I've tried many different solutions to change the timezone of the datetime object and it doesn't work.