From b1eb19cba800695c25e3be874ec3b4aaecfcb846 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 26 Nov 2008 19:27:54 +0000 Subject: [PATCH] * save_individual_event() is maintaining the correct time on non-recurring events. --- webcit/calendar.c | 3 ++- webcit/event.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/webcit/calendar.c b/webcit/calendar.c index 373cfc25a..15f333bfa 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -1112,7 +1112,8 @@ void save_event(void) { msgnum = lbstr("msgnum"); if (msgnum > 0L) { - load_ical_object(msgnum, 0, ICAL_VEVENT_COMPONENT, save_individual_event, NULL); + /* load_ical_object(msgnum, 0, ICAL_VEVENT_COMPONENT, save_individual_event, NULL); */ + load_ical_object(msgnum, 0, (-1), save_individual_event, NULL); } else { save_individual_event(NULL, 0L, "", 0, NULL); diff --git a/webcit/event.c b/webcit/event.c index 37e2e2627..be2170b3f 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -760,6 +760,10 @@ void save_individual_event(icalcomponent *supplied_vevent, long msgnum, char *fr if (supplied_vevent != NULL) { vevent = supplied_vevent; + + /* Convert all timestamps to UTC to make them easier to process. */ + ical_dezonify(vevent); + /* * If we're looking at a fully encapsulated VCALENDAR * rather than a VEVENT component, attempt to use the first -- 2.30.2