From 3dc051891c74d624b2f2942265b801593a4ddbd0 Mon Sep 17 00:00:00 2001 From: Krateng Date: Tue, 9 Apr 2019 13:39:22 +0200 Subject: [PATCH] Fixed bug when displaying future days --- malojatime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/malojatime.py b/malojatime.py index 84036e6..ea98a76 100644 --- a/malojatime.py +++ b/malojatime.py @@ -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: