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

duration not supported #12

Open drzraf opened 2 years ago

drzraf commented 2 years ago

Eg:

BEGIN:VEVENT
UID:1
SUMMARY:FOO
DTSTART:20220516
DURATION:P5D
RRULE:FREQ=DAILY;INTERVAL=10
END:VEVENT
queekusme commented 1 year ago

It works with an end datetime

From what I can see it seems like fullcalendar doesn't support duration and so what would need doing in script.js's mapping logic would be to extract the duration and somehow apply that to the start time

I unfortunatelky don't have time to verify this however once you've found the property in the parsed data it shouldn't be too difficult to append the additional duration, especially as 'moment' is in the project which can do most if not all the heavy lifting