aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-04-05 15:22:12 -0500
committerTed Gould <ted@gould.cx>2011-04-05 15:22:12 -0500
commit76760205d4a4ab209515b7333794cd059ecda82a (patch)
tree40f3e7e413e6df8207ce084a9ef9455f61522a5c /src
parentdb8896f805704ea21387cb4acd712901177e1ea3 (diff)
downloadayatana-indicator-datetime-76760205d4a4ab209515b7333794cd059ecda82a.tar.gz
ayatana-indicator-datetime-76760205d4a4ab209515b7333794cd059ecda82a.tar.bz2
ayatana-indicator-datetime-76760205d4a4ab209515b7333794cd059ecda82a.zip
Use gmtime for full day events.
Diffstat (limited to 'src')
-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))