From 76760205d4a4ab209515b7333794cd059ecda82a Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 5 Apr 2011 15:22:12 -0500 Subject: Use gmtime for full day events. --- src/datetime-service.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) -- cgit v1.2.3