From 0a61481a37a83d8a86c5af9f246e58f21da212f3 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Mon, 5 Nov 2001 00:54:30 +0000 Subject: use TZID from the builtin timezone, instead of using the location name. 2001-11-04 Damon Chaplin * 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 --- calendar/gui/comp-editor-factory.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'calendar/gui') 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); -- cgit v1.2.3