Free Support Forum - aspose.com

Erroneous meeting end times on recurring meetings

We created a MapiMessage with an appointment. 2 occurs.
The end times for the meeting is wrong. added extra 4 hours.

The end time range should be:
5/2/2020 until 5/2/2021 from 10:30am to 10:50am
But we got:
5/2/2020 until 5/2/2021 from 10:30am to 2:50pm

Below is the attached file and code

t.zip (2.3 KB)

    @Test
    public void test() throws Exception {
    String sender = "test@gmail.com";
    String recipient = "test@email.com";

    MailMessage message = new MailMessage(sender, recipient, "", "");

    MailAddressCollection attendees = new MailAddressCollection();
    attendees.addMailAddress(new MailAddress("test@aspose.com", "Attendee"));

    byte[] contentBytes = getIcs().getBytes(Charset.forName("UTF-8"));
    Appointment app = Appointment.load(new ByteArrayInputStream(contentBytes));

    message.addAlternateView(app.requestApointment());

    MapiMessage msg = MapiMessage.fromMailMessage(message);
    msg.save("/tmp/t.eml", new EmlSaveOptions(MailMessageSaveType.getEmlFormat()));
    msg.save("/tmp/t.msg");
}

private String getIcs() {
    return "BEGIN:VCALENDAR\n" + 
            "METHOD:REQUEST\n" + 
            "PRODID:Microsoft Exchange Server 2010\n" + 
            "VERSION:2.0\n" + 
            "BEGIN:VTIMEZONE\n" + 
            "TZID:Eastern Standard Time\n" + 
            "BEGIN:STANDARD\n" + 
            "DTSTART:16010101T020000\n" + 
            "TZOFFSETFROM:-0400\n" + 
            "TZOFFSETTO:-0500\n" + 
            "RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=1SU;BYMONTH=11\n" + 
            "END:STANDARD\n" + 
            "BEGIN:DAYLIGHT\n" + 
            "DTSTART:16010101T020000\n" + 
            "TZOFFSETFROM:-0500\n" + 
            "TZOFFSETTO:-0400\n" + 
            "RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=2SU;BYMONTH=3\n" + 
            "END:DAYLIGHT\n" + 
            "END:VTIMEZONE\n" + 
            "BEGIN:VEVENT\n" + 
            "ORGANIZER;CN=\"test, test\":mailto:test.test@test.com\n" + 
            "ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=\"test2, Gr\n" + 
            " eg\":mailto:Greg.test2@test.com\n" + 
            "DESCRIPTION;LANGUAGE=en-US:test\n" + 
            "RRULE:FREQ=YEARLY;COUNT=2;INTERVAL=1;BYMONTHDAY=2;BYMONTH=5\n" + 
            "UID:000000008200E00074C5B7101A82E008000000001049FBDCD11FD601000000000000000\n" + 
            " 010000000185471E1B755164294A6FC8DFCEB1E56\n" + 
            "SUMMARY;LANGUAGE=en-US:test\n" + 
            "DTSTART;TZID=Eastern Standard Time:20200502T133000\n" + 
            "DTEND;TZID=Eastern Standard Time:20200502T135000\n" + 
            "CLASS:PUBLIC\n" + 
            "PRIORITY:5\n" + 
            "DTSTAMP:20200501T200207Z\n" + 
            "TRANSP:OPAQUE\n" + 
            "STATUS:CONFIRMED\n" + 
            "SEQUENCE:0\n" + 
            "LOCATION;LANGUAGE=en-US:office\n" + 
            "X-MICROSOFT-CDO-APPT-SEQUENCE:0\n" + 
            "X-MICROSOFT-CDO-OWNERAPPTID:-62826524\n" + 
            "X-MICROSOFT-CDO-BUSYSTATUS:TENTATIVE\n" + 
            "X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY\n" + 
            "X-MICROSOFT-CDO-ALLDAYEVENT:FALSE\n" + 
            "X-MICROSOFT-CDO-IMPORTANCE:1\n" + 
            "X-MICROSOFT-CDO-INSTTYPE:1\n" + 
            "X-MICROSOFT-DONOTFORWARDMEETING:FALSE\n" + 
            "X-MICROSOFT-DISALLOW-COUNTER:FALSE\n" + 
            "X-MICROSOFT-LOCATIONS:office\n" + 
            "BEGIN:VALARM\n" + 
            "DESCRIPTION:REMINDER\n" + 
            "TRIGGER;RELATED=START:-PT15M\n" + 
            "ACTION:DISPLAY\n" + 
            "END:VALARM\n" + 
            "END:VEVENT\n" + 
            "END:VCALENDAR";
}

@curtisyamada,

I have observed the issue shared by you. Can you please specify that which product version you have used on your end. If you are using older version, please first try using Aspose.Email for .NET 20.4 on your end. In case of issue, please provide the snapshot highlighting issue on your end.

t.zip (2.3 KB)
wrong_end_time.JPG (77.2 KB)
Please check the wrong_end_time.jpg to find the difference.
I am using aspose.email JAVA 20.4 which is the latest version.
I also attached the t.eml file and t.msg file.
Open the t.eml and t.msg file using outlook, you will see the difference.

@curtisyamada,

I have been able to observe the issue shared by you and have created a ticket with ID EMAILJAVA-34697 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.