mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 11:01:12 +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)
|
delta = relativedelta(now, date)
|
||||||
if delta.years:
|
if delta.years:
|
||||||
return naturalday(date)
|
return naturalday(date)
|
||||||
if delta.days:
|
if delta.days or delta.months:
|
||||||
return naturalday(date, "M j")
|
return naturalday(date, "M j")
|
||||||
return naturaltime(date)
|
return naturaltime(date)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue