If day is in the future, just print the time (not empty)
This commit is contained in:
parent
ba591da2fc
commit
89be4efe6f
@ -74,7 +74,7 @@ def pretty_date(time=None, detail=False, now=None):
|
|||||||
day_diff = diff.days
|
day_diff = diff.days
|
||||||
|
|
||||||
if day_diff < 0:
|
if day_diff < 0:
|
||||||
return ''
|
return time
|
||||||
|
|
||||||
if day_diff == 0:
|
if day_diff == 0:
|
||||||
if second_diff < 10:
|
if second_diff < 10:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user