mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 22:07:55 +00:00
Improve date format explanation
This commit is contained in:
parent
f8235370c7
commit
88fb2c6c17
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ async def member_set(ctx: CommandContext):
|
|||
# Useful if you want your birthday to be displayed yearless.
|
||||
date = datetime.strptime("0001-" + date_str, "%Y-%m-%d").date()
|
||||
except ValueError:
|
||||
raise CommandError("Invalid date. Date must be in ISO-8601 format (eg. 1999-07-25).")
|
||||
raise CommandError("Invalid date. Date must be in ISO-8601 format (YYYY-MM-DD, eg. 1999-07-25).")
|
||||
else:
|
||||
date = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue