aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify/config-data.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-11-14 07:55:26 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-11-14 07:55:26 +0800
commit7c6861ba11143038d33d6c57a8890775020f4610 (patch)
tree2af5200a3f9dda48bae97a5aac1864299ed23b52 /calendar/gui/alarm-notify/config-data.c
parent16cb05f315452b36990666ab57d22385ec098ff5 (diff)
downloadgsoc2013-evolution-7c6861ba11143038d33d6c57a8890775020f4610.tar
gsoc2013-evolution-7c6861ba11143038d33d6c57a8890775020f4610.tar.gz
gsoc2013-evolution-7c6861ba11143038d33d6c57a8890775020f4610.tar.bz2
gsoc2013-evolution-7c6861ba11143038d33d6c57a8890775020f4610.tar.lz
gsoc2013-evolution-7c6861ba11143038d33d6c57a8890775020f4610.tar.xz
gsoc2013-evolution-7c6861ba11143038d33d6c57a8890775020f4610.tar.zst
gsoc2013-evolution-7c6861ba11143038d33d6c57a8890775020f4610.zip
make the timezone default to UTC. Fixes bug #14362.
2001-11-13 Damon Chaplin <damon@ximian.com> * gui/alarm-notify/config-data.c (ensure_inited): * gui/calendar-config.c (config_read): * conduits/todo/todo-conduit.c (get_default_timezone): * conduits/calendar/calendar-conduit.c (get_default_timezone): make the timezone default to UTC. Fixes bug #14362. svn path=/trunk/; revision=14691
Diffstat (limited to 'calendar/gui/alarm-notify/config-data.c')
-rw-r--r--calendar/gui/alarm-notify/config-data.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/calendar/gui/alarm-notify/config-data.c b/calendar/gui/alarm-notify/config-data.c
index cea1d252f9..71170a3ad6 100644
--- a/calendar/gui/alarm-notify/config-data.c
+++ b/calendar/gui/alarm-notify/config-data.c
@@ -72,12 +72,14 @@ ensure_inited (void)
return;
}
- location = bonobo_config_get_string (db, "/Calendar/Display/Timezone", NULL);
- if (location) {
+ location = bonobo_config_get_string_with_default (db,
+ "/Calendar/Display/Timezone", "UTC", NULL);
+ if (location && location[0]) {
local_timezone = icaltimezone_get_builtin_timezone (location);
- g_free (location);
- } else
+ } else {
local_timezone = icaltimezone_get_utc_timezone ();
+ }
+ g_free (location);
if (locale_supports_12_hour_format ()) {
/* Wasn't the whole point of a configuration engine *NOT* to