larrybolt / online-ics-feed-viewer

Online ICS / iCal feed viewer
https://larrybolt.github.io/online-ics-feed-viewer/
MIT License
69 stars 24 forks source link

Recurring events aren't shown #10

Open MartinJM opened 2 years ago

MartinJM commented 2 years ago

Hi,

I noticed that recurring events weren't showing up on the calendar. The following is an example that should show two events, but only shows one in this calendar:

BEGIN:VCALENDAR
PRODID:-
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
UID:00000000-0000-0000-0000-000000000000
DTSTAMP:20211001T100000Z
DTSTART:20211001T100000Z
DTEND:20211001T110000Z
SUMMARY:Test Event
RRULE:FREQ=WEEKLY;UNTIL=20211009
END:VEVENT
END:VCALENDAR

Since I'm using my own modified fork I fixed it in that, but because I also removed some functionality it cannot be merged just like that. The issue is in the fullcalendar version that is being used. It is fixed in a later version, which requires the event data in a different format. Instead of converting from the old format to the new format I opted to use the ICAL parsing functionality they added, which I think is the easiest solution.

Thank you for providing the repo, Martin