aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-11-14 07:46:10 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-11-14 07:46:10 +0800
commit16cb05f315452b36990666ab57d22385ec098ff5 (patch)
tree80f9acbd520921f59abcfcf15bd8c9e57af88e97 /my-evolution/e-summary.c
parentb93c623212899977f4f45db41ae171c64a42c62f (diff)
downloadgsoc2013-evolution-16cb05f315452b36990666ab57d22385ec098ff5.tar.gz
gsoc2013-evolution-16cb05f315452b36990666ab57d22385ec098ff5.tar.zst
gsoc2013-evolution-16cb05f315452b36990666ab57d22385ec098ff5.zip
make the timezone default to UTC.
2001-11-13 Damon Chaplin <damon@ximian.com> * e-summary.c (e_summary_init): make the timezone default to UTC. svn path=/trunk/; revision=14690
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);