From 2bf2faa6b02e497fa0358428b15e924171a6c555 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 3 Dec 2008 18:53:48 +0000 Subject: [PATCH] * When encapsulating a VEVENT into a full VCALENDAR component, all TZID's referenced in timestamps are now also encapsulated into the VCALENDAR component, making the component fully portable across time zones. The sun is shining, birds are chirping, free ice cream is being distributed on streetcorners, and things are just generally good all around. For now. --- webcit/calendar_tools.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webcit/calendar_tools.c b/webcit/calendar_tools.c index 9f846457b..21b8e063f 100644 --- a/webcit/calendar_tools.c +++ b/webcit/calendar_tools.c @@ -281,7 +281,7 @@ icalcomponent *ical_encapsulate_subcomponent(icalcomponent *subcomp) { } icalproperty_set_parameter(p, - icalparameter_new_tzid(icaltimezone_get_location((icaltimezone *)z)) + icalparameter_new_tzid(icaltimezone_get_tzid((icaltimezone *)z)) ); } } @@ -303,8 +303,7 @@ icalcomponent *ical_encapsulate_subcomponent(icalcomponent *subcomp) { /* Attach any timezones we need */ if (num_zones_attached > 0) for (i=0; i