We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

RRULE event change uses wrong time

Hi Aspose

Using Aspose.Email for Java 17.4, if we load the ICS file below using the code below, the 4 events are created OK, but the meeting time after the changed event is one hour out, 8am instead of 9am. Can you please check?

Thanks

ICS file
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//IONET Software//NONSGML Notes Release 9.0.1FP8//EN
BEGIN:VEVENT
CLASS:PUBLIC
TRANSP:OPAQUE
DTSTART:20170704T090000
DTEND:20170704T100000
DTSTAMP:20170410T232018Z
LAST-MODIFIED:20170413T014458Z
SEQUENCE:0
RRULE:FREQ=MONTHLY;INTERVAL=1;UNTIL=20171003T090000;BYDAY=1TU
ORGANIZER;CN=Joe User:mailto:juser@ionet.co.nz
UID:B8F29BB4875C3F37CC2580FE008033D9
SUMMARY:Every 1TU for 3 months, one time change
END:VEVENT
BEGIN:VEVENT
CLASS:PUBLIC
TRANSP:OPAQUE
DTSTART:20170801T140000
DTEND:20170801T150000
DTSTAMP:20170410T232018Z
LAST-MODIFIED:20170413T014458Z
SEQUENCE:1
RECURRENCE-ID:20170801T090000
ORGANIZER;CN=Joe User:mailto:Joe_User@ionetsoftware.com
UID:B8F29BB4875C3F37CC2580FE008033D9
SUMMARY:Every 1TU for 3 months, one time change
END:VEVENT
END:VCALENDAR

Code

PersonalStorage pst = null;
Appointment calDoc;
MailMessage calMsg;
MapiMessage calMapiMsg;
FolderInfo calFolder;
MapiCalendar mapiCal;
License asposeLicense;

try {
String pathPSTFileStr = “c:\temp\testPST.pst”;
String testFile = “c:\temp\test.ics”;
…set License…
pst = PersonalStorage.create(pathPSTFileStr, 0);
calDoc = Appointment.load(testFile);
calMsg = new MailMessage();
calMsg.addAlternateView(calDoc.requestApointment());
calMapiMsg = MapiMessage.fromMailMessage(calMsg);
calFolder = pst.createPredefinedFolder(“Calendar”, StandardIpmFolder.Appointments);
mapiCal = (MapiCalendar)calMapiMsg.toMapiMessageItem();
calFolder.addMapiMessageItem(mapiCal);
}
catch(Exception e) {
System.out.println("Import Error : " + e.toString());
}
finally {
pst.dispose();
}

Hi Peter,


Thank you for writing to Aspose support team again.

I have tested the scenario, however observed different issue than the one specified by you. Comparison of the resultant PST and original ICS file is attached here for your reference. Could you please test the scenario again and ensure that you have sent us the right ICS file?

Hi Kashif

That is interesting. I definitely see a problem in the resulting PST, which I’ve attached for your reference. The event on 5 September is set at 8am, not 9am. Do you see that in the PST?

Thanks

Hi Peter,


Thank you for contacting Aspose support team.

This issue is reproduced after setting my system timezone to Pacific/Aukland. It is logged under Id:EMAILJAVA-34263 for further investigation by the product team. You will be automatically notified once any update is received in this regard.

OK thanks Kashif

You are welcome.

The issues you have found earlier (filed as EMAILJAVA-34263) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.