If day is in the future, just print the time (not empty)
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user