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:
parent
9846fd9952
commit
3dc051891c
@ -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:
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user