diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-24 08:48:35 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-24 08:48:35 +0200 |
commit | 9421f64ee86e6aec26e05a45bcfc65edd895a8a8 (patch) | |
tree | 96f7ca572dc627bad03485afd34230f0a448ef77 /src/ui | |
parent | e608b04a9e46e75c8c1179f47d0b65fb2f26c2d9 (diff) |
SidebarWidget: Tweaked date formatting
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/sidebarwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { | |||
127 | on = entryDate; | 127 | on = entryDate; |
128 | iSidebarItem *sep = new_SidebarItem(); | 128 | iSidebarItem *sep = new_SidebarItem(); |
129 | sep->listItem.isSeparator = iTrue; | 129 | sep->listItem.isSeparator = iTrue; |
130 | iString *text = format_Date(&on, on.year == thisYear ? "%b %d" : "%Y %b %d"); | 130 | iString *text = format_Date(&on, on.year == thisYear ? "%b. %d" : "%b. %d, %Y"); |
131 | set_String(&sep->meta, text); | 131 | set_String(&sep->meta, text); |
132 | delete_String(text); | 132 | delete_String(text); |
133 | addItem_ListWidget(d->list, sep); | 133 | addItem_ListWidget(d->list, sep); |
@@ -205,7 +205,7 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) { | |||
205 | iSidebarItem *sep = new_SidebarItem(); | 205 | iSidebarItem *sep = new_SidebarItem(); |
206 | sep->listItem.isSeparator = iTrue; | 206 | sep->listItem.isSeparator = iTrue; |
207 | const iString *text = collect_String(format_Date( | 207 | const iString *text = collect_String(format_Date( |
208 | &date, date.year != thisYear ? "%Y %b %d" : "%b %d")); | 208 | &date, date.year != thisYear ? "%b. %d, %Y" : "%b. %d")); |
209 | set_String(&sep->meta, text); | 209 | set_String(&sep->meta, text); |
210 | const int yOffset = itemHeight_ListWidget(d->list) * 2 / 3; | 210 | const int yOffset = itemHeight_ListWidget(d->list) * 2 / 3; |
211 | sep->id = yOffset; | 211 | sep->id = yOffset; |