aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/comp-editor-factory.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-11-05 08:54:30 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-11-05 08:54:30 +0800
commit0a61481a37a83d8a86c5af9f246e58f21da212f3 (patch)
treef0355a2daca6ee70d9240bb5c98476a0ac55fba4 /calendar/gui/comp-editor-factory.c
parentfa693dec6534410405f45622cbe2bf2917ecc359 (diff)
downloadgsoc2013-evolution-0a61481a37a83d8a86c5af9f246e58f21da212f3.tar.gz
gsoc2013-evolution-0a61481a37a83d8a86c5af9f246e58f21da212f3.tar.zst
gsoc2013-evolution-0a61481a37a83d8a86c5af9f246e58f21da212f3.zip
use TZID from the builtin timezone, instead of using the location name.
2001-11-04 Damon Chaplin <damon@ximian.com> * gui/comp-editor-factory.c (get_default_component): use TZID from the builtin timezone, instead of using the location name. svn path=/trunk/; revision=14584
Diffstat (limited to 'calendar/gui/comp-editor-factory.c')
-rw-r--r--calendar/gui/comp-editor-factory.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/calendar/gui/comp-editor-factory.c b/calendar/gui/comp-editor-factory.c
index 44f68c4e83..928c50f937 100644
--- a/calendar/gui/comp-editor-factory.c
+++ b/calendar/gui/comp-editor-factory.c
@@ -353,13 +353,17 @@ get_default_component (CalComponentVType vtype)
if (vtype == CAL_COMPONENT_EVENT) {
struct icaltimetype itt;
CalComponentDateTime dt;
+ char *location;
+ icaltimezone *zone;
comp = cal_comp_event_new_with_defaults ();
itt = icaltime_today ();
dt.value = &itt;
- dt.tzid = calendar_config_get_timezone ();
+ location = calendar_config_get_timezone ();
+ zone = icaltimezone_get_builtin_timezone (location);
+ dt.tzid = icaltimezone_get_tzid (zone);
cal_component_set_dtstart (comp, &dt);
cal_component_set_dtend (comp, &dt);