From 059619a3766f51b8da9f2fff9ffc48b8e5ae7260 Mon Sep 17 00:00:00 2001 From: lindakladivova Date: Fri, 24 May 2024 08:16:27 +0200 Subject: [PATCH] date formatting edited (-d replaced) --- gui/wxpython/history/tree.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/wxpython/history/tree.py b/gui/wxpython/history/tree.py index e99432cdde5..e96d7e1ec1d 100644 --- a/gui/wxpython/history/tree.py +++ b/gui/wxpython/history/tree.py @@ -77,15 +77,15 @@ def dayToLabel(self, day): return _("No time info") if day == current_date: - return "{:%B %-d} (today)".format(day) + return "{:%B} {} (today)".format(day, day.day) elif day == current_date - datetime.timedelta(days=1): - return "{:%B %-d} (yesterday)".format(day) + return "{:%B} {} (yesterday)".format(day, day.day) elif day >= (current_date - datetime.timedelta(days=current_date.weekday())): - return "{:%B %-d} (this week)".format(day) + return "{:%B} {} (this week)".format(day, day.day) elif day.year == current_date.year: - return "{:%B %-d}".format(day) + return "{:%B} {}".format(day, day.day) else: - return "{:%B %-d, %Y}".format(day) + return "{:%B} {}, {}".format(day, day.day, day.year) class HistoryBrowserTree(CTreeView):