handle all day events

Fixed error that occurred with all day events