Appointment in PST does not display timezone when open through Outlook but uses set (Java)

BEGIN:VCALENDAR
METHOD:PUBLISH
PRODID:Microsoft Exchange Server 2010
VERSION:2.0
X-WR-CALNAME:Test
BEGIN:VTIMEZONE
TZID:America/New_York
BEGIN:STANDARD
DTSTART:16010101T020000
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
RRULE:FREQ=YEARLY;INTERVAL=1;BYMONTH=11;BYDAY=1SU
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T020000
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
RRULE:FREQ=YEARLY;INTERVAL=1;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
SUMMARY;LANGUAGE=en-US:Test
DTSTART;TZID=America/New_York:20180416T080000
DTEND;TZID=America/New_York:20180416T110000
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20190213T131720Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:0
END:VEVENT
END:VCALENDAR

calendar.png (1.7 KB)

@Ruzal,

I have observed the information shared by you and request you to please try using latest Aspose.Email 19.1 on your end. In case there is still an issue then please provide the sample code used along with source and generated output so that we may log the issue in our issue tracking system after reproducing it.

		PersonalStorage pst = PersonalStorage.create("test.pst", FileFormatVersion.Unicode);
		FolderInfo calendar = pst.createPredefinedFolder("Test", StandardIpmFolder.Appointments);
		java.util.Calendar startDate = java.util.Calendar.getInstance();
		startDate.set(2019, 2, 25);
		startDate.set(Calendar.HOUR, 6);
		startDate.set(Calendar.MINUTE, 0);
		java.util.Calendar endDate = java.util.Calendar.getInstance();
		endDate.set(2019, 2, 26);
		startDate.set(Calendar.HOUR, 11);
		startDate.set(Calendar.MINUTE, 0);

		MailAddressCollection attendees = new MailAddressCollection();
		attendees.addMailAddress(new MailAddress("attendee@domain.com", "Attendee"));
		Appointment app = new Appointment("location", startDate.getTime(), endDate.getTime(),
			new MailAddress("organizer@domain.com", "Organizer"), attendees);
		app.setTimeZone("America/New_York");
		MailMessage msg = new MailMessage();
		msg.addAlternateView(app.requestApointment());
		MapiMessage mapi = MapiMessage.fromMailMessage(msg);
		calendar.addMapiMessageItem(mapi);
		pst.dispose();

@Ruzal,

For time zone related information, I suggest you to please visit this documentation link for your convenience.

Thanks, but what is wrong in my example code?

@Ruzal,

As shared in the documentation link, you need to set the MapiCalendarTimeZone.

why will not work app.setTimeZone(“America/New_York”); ? How I can load apointment with correctly timezone view in outlook from meta content in the top inital question?

@Ruzal,

Can you please share if the suggested code worked on your end or not. If there is still issue incurring on your end then please provide the source fil and working sample code along with generated output. We will investigate that on our end that why your option is not been able to set time zone accordingly.

I’m already shared example of code that reproduces this. Please check it. Thank you!

@Ruzal,

In my humble suggestion, I have shared the option for setting TimeZone previously in one of my responses. Have you tried that approach? Does it has issue on your end.

Yes, I tried this solution, but it still no working :frowning:

@Ruzal,

I have created an issue with ID EMAILJAVA-34552 in our issue tracking system to further investigate the issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.