From f052fb9c629f080729bfdf9942b08983bb1fa613 Mon Sep 17 00:00:00 2001 From: Anubhav1603 Date: Thu, 1 Oct 2020 19:52:46 +0530 Subject: formated date and month of error in better way --- bot/exts/valentines/valentine_zodiac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/exts/valentines/valentine_zodiac.py b/bot/exts/valentines/valentine_zodiac.py index 29888bcf..36572729 100644 --- a/bot/exts/valentines/valentine_zodiac.py +++ b/bot/exts/valentines/valentine_zodiac.py @@ -45,7 +45,7 @@ class ValentineZodiac(commands.Cog): embed = discord.Embed() embed.color = Colours.soft_red error_comp = "\n".join( - f"`{i}` {name}: {zodiac['start_at'].date()} - {zodiac['end_at'].date()}" + f"`{i}` {name}: {zodiac['start_at'].strftime('%B `%d`')} - {zodiac['end_at'].strftime('%B `%d`')}" for i, (name, zodiac) in enumerate(sorted(self.zodiac_fact.items()), start=1) ) embed.description = ( -- cgit v1.2.3