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