iCal export not properly flagging all day events

The calendar will export all the events to iCal but the flag for multiday events isn’t checked even though the dates are correct on the event. If I go in iCal and turn on ‘all-day’ then they show up properly. Is there a section of the code I can add to make sure this gets flagged correctly?

Thanks,
Andrew