If day is in the future, just print the time (not empty)

This commit is contained in:
2016-11-07 17:10:41 +01:00
parent ba591da2fc
commit 89be4efe6f

View File

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