From a61ca162b03b1cfed78f93daead94f974bbff1d5 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sat, 14 Sep 2024 14:33:02 +1000 Subject: [PATCH] Fix post dates being inconsistent Makes all dates fixed except if in the last day, in which case they are relative times. Fixes #3365 --- bookwyrm/templatetags/status_display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templatetags/status_display.py b/bookwyrm/templatetags/status_display.py index c92b1877a..c0ab40689 100644 --- a/bookwyrm/templatetags/status_display.py +++ b/bookwyrm/templatetags/status_display.py @@ -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)