I’m creating all day event from the ical file and I noticed that it’s marked as all day event in the created pst but start date and end date are the same, while in the original end date is day after start date.
Please see attached ical file.
This is how I marked the event as all day :
Appointment app = Appointment.load(new ByteArrayInputStream(outStream.getBuffer(), 0, outStream.size())); final MailMessage msg = new MailMessage(); msg.addAlternateView(app.requestApointment()); final MapiMessage mapi = MapiMessage.fromMailMessage(msg, options); final MapiCalendar tmpCal = (MapiCalendar) mapi.toMapiMessageItem(); tmpCal.setAllDay(isAllDay);
Please see screenshots, where green is from the PST and the blue is original