Skip to content

Commit

Permalink
Fix shortening the relative date for the phrase "1 month ago"
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste committed Apr 6, 2024
1 parent 1300987 commit 6cbf5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/interfaces/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def get_date(branch):
d = branch.relative_committerdate
if d == "12 months ago":
d = "1 year ago"
return re.sub(r", \d+ months ago", " ago", d)
return re.sub(r", \d+ months? ago", " ago", d)
return branch.human_committerdate

date = get_date(branch)
Expand Down

0 comments on commit 6cbf5ee

Please sign in to comment.