1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Fixed bug when displaying future days

This commit is contained in:
Krateng 2019-04-09 13:39:22 +02:00
parent 9846fd9952
commit 3dc051891c

View File

@ -140,7 +140,7 @@ def time_desc(t,short=False):
diff = (nowobject - timeobject).days
if diff == 0: return "Today"
if diff == 1: return "Yesterday"
if diff < 7: return timeobject.strftime("%A")
if diff < 7 and diff > 1: return timeobject.strftime("%A")
#elif len(t) == 2: