* save_individual_event() is maintaining
authorArt Cancro <ajc@citadel.org>
Wed, 26 Nov 2008 19:27:54 +0000 (19:27 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 26 Nov 2008 19:27:54 +0000 (19:27 +0000)
  the correct time on non-recurring events.

webcit/calendar.c
webcit/event.c

index 373cfc25a114affa9f865a174fa2194933cb2e37..15f333bfa9e129724ded63eb160a1f38a418cf6c 100644 (file)
@@ -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);
index 37e2e2627a688b8df297cf98c4ee916ade5f1285..be2170b3f059b50dbbeac57c980d0dbaae70fde7 100644 (file)
@@ -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