From e71d98a0b8144009c8cead29e3bbbac6253bdb9e Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 11 Dec 2008 04:19:08 +0000 Subject: [PATCH] * Still trying to clean up compiler warnings --- citadel/modules/calendar/serv_calendar.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/citadel/modules/calendar/serv_calendar.c b/citadel/modules/calendar/serv_calendar.c index 4c9ad4242..27d256e01 100644 --- a/citadel/modules/calendar/serv_calendar.c +++ b/citadel/modules/calendar/serv_calendar.c @@ -1776,9 +1776,9 @@ void ical_send_out_invitations(icalcomponent *top_level_cal, icalcomponent *cal) size_t reqsize; icalproperty *p; struct icaltimetype t; - const icaltimezone *attached_zones[5] = { NULL, NULL, NULL, NULL, NULL }; + icaltimezone *attached_zones[5] = { NULL, NULL, NULL, NULL, NULL }; int i; - const icaltimezone *z; + icaltimezone *z; int num_zones_attached = 0; int zone_already_attached; @@ -1889,7 +1889,12 @@ void ical_send_out_invitations(icalcomponent *top_level_cal, icalcomponent *cal) ); /* First see if there's a timezone attached to the data structure itself */ - z = icaltime_get_timezone(t); + if (icaltime_is_utc(t)) { + z = icaltimezone_get_utc_timezone(); + } + else { + z = icaltime_get_timezone(t); + } if (z) CtdlLogPrintf(CTDL_DEBUG, "Timezone is present in data structure\n"); /* If not, try to determine the tzid from the parameter using attached zones */ -- 2.30.2