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

pull/3339/head
matejcik 7 months ago committed by matejcik
parent 06f77f745f
commit 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()

Loading…
Cancel
Save