One of .ics cals I tried to import had this line inside VEVENT:
DTSTART;TZID=Europe/Bratislava;VALUE=DATE:20060101
which caused
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (Europe/Bratislava;VALUE=DATE)
A workaround is add a line after 309. After:
$timezone = substr($strstr, 5);
i added
$timezone=explode(";",$timezone)[0];