mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 02:51:13 +00:00
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:
parent
13381b9b4d
commit
a61ca162b0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue