From 9421f64ee86e6aec26e05a45bcfc65edd895a8a8 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 24 Nov 2020 08:48:35 +0200 Subject: SidebarWidget: Tweaked date formatting --- src/ui/sidebarwidget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui') diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index e38499bc..ab3b11cf 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c @@ -127,7 +127,7 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) { on = entryDate; iSidebarItem *sep = new_SidebarItem(); sep->listItem.isSeparator = iTrue; - iString *text = format_Date(&on, on.year == thisYear ? "%b %d" : "%Y %b %d"); + iString *text = format_Date(&on, on.year == thisYear ? "%b. %d" : "%b. %d, %Y"); set_String(&sep->meta, text); delete_String(text); addItem_ListWidget(d->list, sep); @@ -205,7 +205,7 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) { iSidebarItem *sep = new_SidebarItem(); sep->listItem.isSeparator = iTrue; const iString *text = collect_String(format_Date( - &date, date.year != thisYear ? "%Y %b %d" : "%b %d")); + &date, date.year != thisYear ? "%b. %d, %Y" : "%b. %d")); set_String(&sep->meta, text); const int yOffset = itemHeight_ListWidget(d->list) * 2 / 3; sep->id = yOffset; -- cgit v1.2.3