bitfireAT / ical4android

Allows usage of iCalendar files with the Android calendar provider
GNU General Public License v3.0
19 stars 10 forks source link

Getting "Invalid date 'APRIL 31'" when specification of time for EXDATE is missing #147

Closed rfc2822 closed 6 months ago

rfc2822 commented 6 months ago

Discussed in https://github.com/bitfireAT/ical4android/discussions/146

Originally posted by **bwildenhain** March 27, 2024 Hi, when trying to sync a Nextcloud calender, which contains the recurring event from [btest.ics.txt](https://github.com/bitfireAT/davx5-ose/files/14772734/btest.ics.txt) I get the following error message: `Invalid date 'APRIL 31'` Although https://icalendar.org/validator.html, GNOME Evolution and Nextcloud Calendar didn't complain and excluded the 31st of may (sic!), the file using only a date where date + time where required for the EXDATE line, so `EXDATE;VALUE=DATE:20240531` seems to be wrong wrong, while `EXDATE;TZID=Europe/Berlin:20240531T114500` was working. The following debug output was created: [debug-info.txt](https://github.com/bitfireAT/davx5-ose/files/14773709/debug-info.txt) I wonder whether it might be a good idea to output a more understandable error message or to handle this more gracefully by accepting the file nevertheless and interpreting it accordingly. I have no experience in kotlin programming, so I didn't look into the actual source code.