aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-startup-wizard.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2002-01-12 08:28:42 +0800
committerDamon Chaplin <damon@src.gnome.org>2002-01-12 08:28:42 +0800
commite350e04ff3c630b3ddcf96ebdc96af11368eb9c8 (patch)
treeac9ea7620325316fb2ecc925df290b7aed6c5419 /shell/e-shell-startup-wizard.c
parent9e3614c59f841c07587aadcf38fc9a183c2d983b (diff)
downloadgsoc2013-evolution-e350e04ff3c630b3ddcf96ebdc96af11368eb9c8.tar.gz
gsoc2013-evolution-e350e04ff3c630b3ddcf96ebdc96af11368eb9c8.tar.zst
gsoc2013-evolution-e350e04ff3c630b3ddcf96ebdc96af11368eb9c8.zip
handle translated timezone names.
2002-01-11 Damon Chaplin <damon@ximian.com> * e-shell-startup-wizard.c (finish_func): handle translated timezone names. * Makefile.am (INCLUDES): added -I$(top_srcdir)/libical/src/libical. svn path=/trunk/; revision=15305
Diffstat (limited to 'shell/e-shell-startup-wizard.c')
-rw-r--r--shell/e-shell-startup-wizard.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/e-shell-startup-wizard.c b/shell/e-shell-startup-wizard.c
index a65aa1799f..33e3297bd6 100644
--- a/shell/e-shell-startup-wizard.c
+++ b/shell/e-shell-startup-wizard.c
@@ -336,6 +336,7 @@ finish_func (GnomeDruidPage *page,
{
CORBA_Environment ev;
char *displayname, *tz;
+ icaltimezone *zone;
/* Notify mailer */
CORBA_exception_init (&ev);
@@ -346,10 +347,13 @@ finish_func (GnomeDruidPage *page,
CORBA_exception_init (&ev);
e_timezone_dialog_get_timezone (E_TIMEZONE_DIALOG (data->timezone_page->etd), &displayname);
- if (displayname == NULL)
+ /* We know it is a builtin timezone, as that is all the user can change
+ it to. */
+ zone = e_timezone_dialog_get_builtin_timezone (displayname);
+ if (zone == NULL)
tz = g_strdup ("UTC");
else
- tz = g_strdup (displayname);
+ tz = g_strdup (icaltimezone_get_location (zone));
bonobo_config_set_string (data->db, "/Calendar/Display/Timezone", tz, &ev);
g_free (tz);