From 919f71adedb90179facbd615cac9658ba955205d Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 12 Nov 2008 16:50:07 +0000 Subject: [PATCH] Back end calendar handlers in citserver no longer convert everything to UTC. Please do not put this code into production for the next 200 or 300 years because that's how long it's going to take to debug. --- citadel/modules/calendar/serv_calendar.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/citadel/modules/calendar/serv_calendar.c b/citadel/modules/calendar/serv_calendar.c index 111e0d8f3..775ab5f97 100644 --- a/citadel/modules/calendar/serv_calendar.c +++ b/citadel/modules/calendar/serv_calendar.c @@ -87,11 +87,6 @@ icalcomponent *ical_encapsulate_subcomponent(icalcomponent *subcomp) { /* Encapsulate the subcomponent inside */ icalcomponent_add_component(encaps, subcomp); - /* Convert all timestamps to UTC so we don't have to deal with - * stupid VTIMEZONE crap. - */ - ical_dezonify(encaps); - /* Return the object we just created. */ return(encaps); } @@ -382,9 +377,6 @@ void ical_locate_part(char *name, char *filename, char *partnum, char *disp, } ird->cal = icalcomponent_new_from_string(content); - if (ird->cal != NULL) { - ical_dezonify(ird->cal); - } } @@ -1214,8 +1206,6 @@ void ical_add_to_freebusy(icalcomponent *fb, icalcomponent *cal) { return; } - ical_dezonify(cal); - /* If this event is not opaque, the user isn't publishing it as * busy time, so don't bother doing anything else. */ @@ -1625,7 +1615,6 @@ void ical_putics(void) cal = icalcomponent_new_from_string(calstream); free(calstream); - ical_dezonify(cal); /* We got our data stream -- now do something with it. */ @@ -1896,9 +1885,6 @@ void ical_send_out_invitations(icalcomponent *cal) { /* Set the method to REQUEST */ icalcomponent_set_method(encaps, ICAL_METHOD_REQUEST); - /* Now make sure all of the DTSTART and DTEND properties are UTC. */ - ical_dezonify(the_request); - /* Here we go: put the VEVENT into the VCALENDAR. We now no longer * are responsible for "the_request"'s memory -- it will be freed * when we free "encaps". @@ -2294,7 +2280,6 @@ void ical_fixed_output(char *ptr, int len) { return; } - ical_dezonify(cal); ical_fixed_output_backend(cal, 0); /* Free the memory we obtained from libical's constructor */ -- 2.30.2