Skip to content

Commit

Permalink
Fix post dates being inconsistent
Browse files Browse the repository at this point in the history
Makes all dates fixed except if in the last day, in which case they are relative times.

Fixes #3365
  • Loading branch information
hughrun committed Sep 14, 2024
1 parent 13381b9 commit a61ca16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bookwyrm/templatetags/status_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_published_date(date):
delta = relativedelta(now, date)
if delta.years:
return naturalday(date)
if delta.days:
if delta.days or delta.months:
return naturalday(date, "M j")
return naturaltime(date)

Expand Down

0 comments on commit a61ca16

Please sign in to comment.