Skip to content

Commit 2f7c528

Browse files
bdracojesserockz
andauthored
Update script/generate_release_notes.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
1 parent d60d683 commit 2f7c528

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

script/generate_release_notes.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -838,11 +838,7 @@ def _replace_placeholders(self, template: str) -> str:
838838
"""Replace version placeholders"""
839839
# Format date
840840
now = datetime.now()
841-
day = now.day
842-
suffix = (
843-
"th" if 11 <= day <= 13 else {1: "st", 2: "nd", 3: "rd"}.get(day % 10, "th")
844-
)
845-
date_str = f"{day}{suffix} {now.strftime('%B %Y')}"
841+
date_str = now.strftime('%B %Y')
846842

847843
template = template.replace("{VERSION}", str(self.version))
848844
template = template.replace("{DATE}", date_str)

0 commit comments

Comments
 (0)