Fix post dates being inconsistent

Makes all dates fixed except if in the last day, in which case they are relative times.

Fixes #3365
This commit is contained in:
Hugh Rundle 2024-09-14 14:33:02 +10:00
parent 13381b9b4d
commit a61ca162b0
No known key found for this signature in database
GPG key ID: A7E35779918253F9

View file

@ -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)