--- export_execute.php 2016-09-22 17:11:50.000000000 -0400 +++ new.php 2016-09-22 17:11:10.000000000 -0400 @@ -193,6 +193,10 @@ //dtend is better than duration, because it works in Microsoft Outlook and works better in Korganizer $ev->add_property('dtstart', Bennu::timestamp_to_datetime($event->timestart)); // when event starts. $ev->add_property('dtend', Bennu::timestamp_to_datetime($event->timestart + $event->timeduration)); + } else if (!empty(($event->timestart))) { + // If event has no duration but has a start time, then make start and end the same + $ev->add_property('dtstart', Bennu::timestamp_to_datetime($event->timestart)); // when event starts. + $ev->add_property('dtend', Bennu::timestamp_to_datetime($event->timestart)); // Since no duration, end and start same. } else { // When no duration is present, ie an all day event, VALUE should be date instead of time and dtend = dtstart + 1 day. $ev->add_property('dtstart', Bennu::timestamp_to_date($event->timestart), array('value' => 'DATE')); // All day event.