Use only year 0001 as null-year
This commit is contained in:
parent
a25e689180
commit
131ea6ef4e
@ -261,7 +261,7 @@ async def generate_member_info_card(conn, member: asyncpg.Record) -> discord.Emb
|
|||||||
|
|
||||||
if member["birthday"]:
|
if member["birthday"]:
|
||||||
bday_val = member["birthday"].strftime("%b %d, %Y")
|
bday_val = member["birthday"].strftime("%b %d, %Y")
|
||||||
if member["birthday"].year < 1000:
|
if member["birthday"].year == 1:
|
||||||
bday_val = member["birthday"].strftime("%b %d")
|
bday_val = member["birthday"].strftime("%b %d")
|
||||||
card.add_field(name="Birthdate", value=bday_val)
|
card.add_field(name="Birthdate", value=bday_val)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user