Here is the code which is erroring out when trying to read ical file.
event = Appointment.load(filename)
folder.add_mapi_message_item(event.to_mapi_message())
Error:
RuntimeError: Proxy error(AsposeException): Start date 01/24/2024 00:30:00 not valid for this rule - Recur every month on the Thursday on the 4th set position(s) for a maximum of 13 occurrences.
The following is the file that I am trying to read. The date should match up to a thursday. Also, not sure where 24th is coming from because the date in the ics file is 25th.
BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VTIMEZONE
TZID:India Standard Time
BEGIN:STANDARD
DTSTART:16010101T000000
TZOFFSETFROM:+0530
TZOFFSETTO:+0530
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T000000
TZOFFSETFROM:+0530
TZOFFSETTO:+0530
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
RRULE:FREQ=MONTHLY;UNTIL=20250124T190000Z;INTERVAL=1;BYDAY=4TH
SUMMARY;LANGUAGE=en-US:TZ issue
DTSTART;TZID=India Standard Time:20240125T003000
DTEND;TZID=India Standard Time:20240125T010000
END:VEVENT
END:VCALENDAR
Just to be safe, I also tried to read version with UTC timestamps, although the dates don’t match up there. I understand the UTC version not working. My concern is the previous ics file with the proper timezone not working.
BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
DTSTART:20240124T190000Z
DTEND:20240124T193000Z
RRULE:FREQ=MONTHLY;INTERVAL=1;BYDAY=4TH;UNTIL=20250125T182959Z
SUMMARY:TZ issue
END:VEVENT
END:VCALENDAR
I see a few related issue, but none seem to exactly match up: