aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-05-21 17:31:51 +0800
committerMilan Crha <mcrha@redhat.com>2009-05-21 17:31:51 +0800
commit80a7e0cd1b57716c189e3fa626c9c1b4245c1fab (patch)
treec8c1ad331100a9558662432e29a34a84a86bbda8
parenta45f725d0ca985bf8c66a6f7ed97e110466e2c80 (diff)
downloadgsoc2013-evolution-80a7e0cd1b57716c189e3fa626c9c1b4245c1fab.tar.gz
gsoc2013-evolution-80a7e0cd1b57716c189e3fa626c9c1b4245c1fab.tar.zst
gsoc2013-evolution-80a7e0cd1b57716c189e3fa626c9c1b4245c1fab.zip
Bug #583360 - Be able to select UTC as day view's second timezone
-rw-r--r--calendar/gui/calendar-config.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index 6a7cf94ee7..041b60d09f 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -1771,8 +1771,16 @@ calendar_config_select_day_second_zone (void)
dialog = e_timezone_dialog_get_toplevel (tzdlg);
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) {
+ const char *location = NULL;
+
zone = e_timezone_dialog_get_timezone (tzdlg);
- calendar_config_set_day_second_zone (zone ? icaltimezone_get_location (zone) : NULL);
+ if (zone == icaltimezone_get_utc_timezone ()) {
+ location = "UTC";
+ } else if (zone) {
+ location = icaltimezone_get_location (zone);
+ }
+
+ calendar_config_set_day_second_zone (location);
}
g_object_unref (tzdlg);