1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 05:03:07 +00:00

fix(tools): remove leading zero from "01st" in changelog dates

This commit is contained in:
matejcik 2023-10-06 10:37:20 +02:00 committed by matejcik
parent 06f77f745f
commit ba4766f14e

View File

@ -91,7 +91,7 @@ def current_date(project):
return today.strftime("%Y-%m-%d")
else:
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()