From ba4766f14e75bc41dcc8051af59c0ca401b33b9a Mon Sep 17 00:00:00 2001 From: matejcik Date: Fri, 6 Oct 2023 10:37:20 +0200 Subject: [PATCH] fix(tools): remove leading zero from "01st" in changelog dates --- tools/generate-changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/generate-changelog.py b/tools/generate-changelog.py index 1635989c7..9145fc64d 100755 --- a/tools/generate-changelog.py +++ b/tools/generate-changelog.py @@ -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()