aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/datetime-service.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 0ceb975..5e8d312 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -870,11 +870,14 @@ update_appointment_menu_items (gpointer user_data)
// Due text
if (full_day) {
+ struct tm fulldaytime = {0};
+ gmtime_r(&ci->start, &fulldaytime);
+
/* TRANSLATORS: This is a strftime string for the day for full day events
in the menu. It should most likely be either '%A' for a full text day
(Wednesday) or '%a' for a shortened one (Wed). You should only need to
change for '%a' in the case of langauges with very long day names. */
- strftime(right, 20, _("%A"), due);
+ strftime(right, 20, _("%A"), &fulldaytime);
} else {
if (apt_output == SETTINGS_TIME_12_HOUR) {
if ((mday == dmday) && (mon == dmon) && (year == dyear))