X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fcalendar%2Fserv_calendar.c;h=ab9dee4a6e1a35e34a5bc302dd86b79ea94ba623;hp=2300cd9c1076e98085e29821f982d05a3936bb1d;hb=ed314542323fe103f308cbf90763a7db9989698d;hpb=5ce2f5c9a18d4b8a9fd7fcc82fea11dc0f2b3d32 diff --git a/citadel/modules/calendar/serv_calendar.c b/citadel/modules/calendar/serv_calendar.c index 2300cd9c1..ab9dee4a6 100644 --- a/citadel/modules/calendar/serv_calendar.c +++ b/citadel/modules/calendar/serv_calendar.c @@ -1576,14 +1576,10 @@ void ical_getics(void) */ void ical_putics_grabtzids(icalparameter *param, void *data) { - char *need_these_tzids = (char *) data; const char *tzid = icalparameter_get_tzid(param); - if ( (need_these_tzids) && (tzid) ) { - if (strlen(need_these_tzids) + strlen(tzid) < 1020) { - strcat(need_these_tzids, icalparameter_get_tzid(param)); - strcat(need_these_tzids, "\n"); - } + if (tzid) { + CtdlLogPrintf(CTDL_DEBUG, "FIXME : need to attach tzid '%s'\n", tzid); } } @@ -1598,7 +1594,6 @@ void ical_putics(void) icalcomponent *cal; icalcomponent *c; icalcomponent *encaps = NULL; - int i; /* Only allow this operation if we're in a room containing a calendar or tasks view */ if ( (CC->room.QRdefaultview != VIEW_CALENDAR) @@ -1654,12 +1649,8 @@ void ical_putics(void) icalcomponent_add_property(encaps, icalproperty_new_version("2.0")); icalcomponent_set_method(encaps, ICAL_METHOD_PUBLISH); - /* Attach any needed timezones here */ - char need_these_tzids[1024] = ""; - icalcomponent_foreach_tzid(c, ical_putics_grabtzids, need_these_tzids); - for (i=0; i