aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary.c
diff options
context:
space:
mode:
Diffstat (limited to 'my-evolution/e-summary.c')
-rw-r--r--my-evolution/e-summary.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/my-evolution/e-summary.c b/my-evolution/e-summary.c
index 51b6c41b48..a74efaa1ca 100644
--- a/my-evolution/e-summary.c
+++ b/my-evolution/e-summary.c
@@ -520,7 +520,12 @@ e_summary_init (ESummary *summary)
return;
}
- summary->timezone = bonobo_config_get_string (db, "/Calendar/Display/Timezone", NULL);
+ summary->timezone = bonobo_config_get_string_with_default (db,
+ "/Calendar/Display/Timezone", "UTC", NULL);
+ if (!summary->timezone || !summary->timezone[0]) {
+ g_free (summary->timezone);
+ summary->timezone = g_strdup ("UTC");
+ }
summary->tz = icaltimezone_get_builtin_timezone (summary->timezone);
bonobo_object_release_unref (db, NULL);