1
0
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:
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") 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()