being loaded into the event editor. TODO: convert back
to local time during save, otherwise we create the
shifting-hour DST problem for recurring events. We
might consider only converting to local time for
recurring events ... that's what Google Calendar does.
cal = icalcomponent_new_from_string(relevant_source);
if (cal != NULL) {
- /* FIXME temp */
- icalproperty *p;
- p = icalcomponent_get_first_property(cal, ICAL_DTSTART_PROPERTY);
- if (p) {
- lprintf(9, "DTSTART IS %s\n",
- icaltime_as_ical_string(
- icalproperty_get_dtstart(p)
- )
- );
- }
- /* */
-
/* A which_kind of (-1) means just load the whole thing */
if (which_kind == (-1)) {
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