aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits/calendar/calendar-conduit.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/conduits/calendar/calendar-conduit.c')
-rw-r--r--calendar/conduits/calendar/calendar-conduit.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c
index 552ba41e69..58b7a7020f 100644
--- a/calendar/conduits/calendar/calendar-conduit.c
+++ b/calendar/conduits/calendar/calendar-conduit.c
@@ -261,14 +261,16 @@ get_default_timezone (void)
CORBA_exception_free (&ev);
- location = bonobo_config_get_string (db, "/Calendar/Display/Timezone", NULL);
- if (location == NULL)
- goto cleanup;
+ location = bonobo_config_get_string_with_default (db,
+ "/Calendar/Display/Timezone", "UTC", NULL);
+ if (!location || !location[0]) {
+ g_free (location);
+ location = g_strdup ("UTC");
+ }
timezone = icaltimezone_get_builtin_timezone (location);
g_free (location);
- cleanup:
bonobo_object_release_unref (db, NULL);
return timezone;