Evaluating Aspose.Email for Java 4.3.0, I try to load an ICS file which specifies UTC time into a PST, using the code below;
String pathPSTFileStr = “c:\temp\testPST.pst”;
String testFile = “c:\temp\test.ics”;
PersonalStorage pst = PersonalStorage.create(pathPSTFileStr, 0);
Appointment calDoc = Appointment.load(testFile);
MailMessage calMsg = new MailMessage();
MapiMessage calMapiMsg = MapiMessage.fromMailMessage(calMsg);
FolderInfo calFolder = pst.createPredefinedFolder(“Calendar”, StandardIpmFolder.Appointments);
MapiCalendar mapiCal = (MapiCalendar)calMapiMsg.toMapiMessageItem();
The ICS file is;
PRODID:-//ACME Software//NONSGML Notes Release 9.0.1FP1//EN
SUMMARY:Test Meeting UTC
DESCRIPTION:This is the description
If I import this ics file into Outlook using the code above, the meeting date/time is not translated from UTC to the local timezone, and it appears in the calendar as 29 July 2014 22:00.
If I import this ics file directly using Outlook, the meeting date/time is translated from UTC to the local timezone, and it appears in the calendar as the correct time 30 July 2014 10:00.
This has been tested on Windows 8.1 & Windows 7, Timezone (UTC+12:00) Coordinated Universal Time+12
Can you please advise what is wrong with the code, or why it does not acknowledge the UTC timezone values?
Thank you for writing to Aspose support.
We have investigated this issue at our end using the latest version of Aspose.Email and have reported it to our development team via issue id: NETWORKNET-34482. Once there is some update or information available in this regard, we’ll update you here via this thread.
The issues you have found earlier (filed as NETWORKNET-34482) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Thanks, although as above it was Email for Java I need it for, not .NET. Will there be a 4.6.0 release for Java with the same fixes?
Yes, the same will be available as Fixed in the Aspose.Email for Java 4.6.0. We’ll notify you here once the fix version is available for download.