From: Art Cancro Date: Mon, 22 Dec 2008 22:14:57 +0000 (+0000) Subject: * When displaying calendar attachments embedded inside an email message, call ical_de... X-Git-Tag: v7.86~1684 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=8a4a8eab545839c18cb8ad44f3510f9e51062acb;p=citadel.git * When displaying calendar attachments embedded inside an email message, call ical_dezonify() to convert all timestamps to UTC. It's safe to do this because we're only effecting that single display instance -- when we act on that object, the server will be working with its own copy. --- diff --git a/webcit/calendar.c b/webcit/calendar.c index 30698c816..e60635ebb 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -37,6 +37,15 @@ void cal_process_object(StrBuf *Target, sprintf(divname, "rsvp%04x", ++divcount); + /* Convert timezones to something easy to display. + * It's safe to do this in memory because we're only changing it on the + * display side -- when we tell the server to do something with the object, + * the server will be working with its original copy in the database. + */ + if ((cal) && (recursion_level == 0)) { + ical_dezonify(cal); + } + /* Leading HTML for the display of this object */ if (recursion_level == 0) { StrBufAppendPrintf(Target, "
\n"); @@ -263,13 +272,9 @@ void cal_process_object(StrBuf *Target, } -/** - * \brief process calendar mail atachment - * Deserialize a calendar object in a message so it can be processed. - * (This is the main entry point for these things) - * \param part_source the part of the message we want to parse - * \param msgnum number of the mesage in our db - * \param cal_partnum the number of the calendar item +/* + * Deserialize a calendar object in a message so it can be displayed. + * */ void cal_process_attachment(wc_mime_attachment *Mime) {