mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
fix(tools): remove leading zero from "01st" in changelog dates
This commit is contained in:
parent
06f77f745f
commit
ba4766f14e
@ -91,7 +91,7 @@ def current_date(project):
|
|||||||
return today.strftime("%Y-%m-%d")
|
return today.strftime("%Y-%m-%d")
|
||||||
else:
|
else:
|
||||||
daysuffix = {1: "st", 2: "nd", 3: "rd"}.get(today.day % 10, "th")
|
daysuffix = {1: "st", 2: "nd", 3: "rd"}.get(today.day % 10, "th")
|
||||||
return today.strftime(f"%d{daysuffix} %B %Y")
|
return today.strftime(f"%-d{daysuffix} %B %Y")
|
||||||
|
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
|
Loading…
Reference in New Issue
Block a user