- ps = icalcomponent_get_first_property(Cal->cal, ICAL_DTSTART_PROPERTY);
- if (ps != NULL) {
- icalcomponent_remove_property(Cal->cal, ps);
- ps = icalproperty_new_dtstart(next);
- icalcomponent_add_property(Cal->cal, ps);
-
- /* Dezonify and decapsulate each recurrence individually, otherwise
- * we slide over by an hour whenever we cross a DST boundary.
- */
- ical_dezonify(Cal->cal);
- icalcomponent *cptr;
- if (icalcomponent_isa(Cal->cal) != ICAL_VEVENT_COMPONENT) {
- cptr = icalcomponent_get_first_component(Cal->cal,
- ICAL_VEVENT_COMPONENT);
- if (cptr) {
- cptr = icalcomponent_new_clone(cptr);
- icalcomponent_free(Cal->cal);
- Cal->cal = cptr;
- lprintf(9, "Deeeeeeeeeeeeeecapsulated!\n");
- }
+ Cal->event_start = icaltime_as_timet(next);
+ lprintf(9, "\e[32mREPEATS: %s, is_utc=%d, tzid=%s\e[0m\n",
+ icaltime_as_ical_string(next),
+ icaltime_is_utc(next),
+ icaltime_get_tzid(next)
+ );
+ final_recurrence = Cal->event_start;