pulsejet / banner-ics

Show calendar event banner from iCalendar attachments in Roundcube
https://packagist.org/packages/radialapps/banner-ics
MIT License
6 stars 5 forks source link

Add support for timezone and all day events #5

Open BathoryPeter opened 3 years ago

BathoryPeter commented 3 years ago

The previous implementation had use only the date-time part of dtstart_array, ignoring timezone information. This pull request provides a hopefully complete timezone implementation.

I also added support for all-day events. When displaying an all-day event the time part is uninteresting (00:00), plus the end date can be ambiguous to read (next day midnight). Timezone is an other twits in this story, because converting the timezone to local time often shifts the date. All of this issues are handled correctly in my patch.

I'm attaching some test .ics file I worked with. test-events.zip