diff options
Diffstat (limited to 'src/ui/sidebarwidget.c')
-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; |