1
0
鏡像自 https://github.com/trezor/trezor-firmware.git synced 2025-07-07 07:12:34 +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 提交者 matejcik
父節點 06f77f745f
當前提交 ba4766f14e

查看文件

@ -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()