Skip to content

Timezone string contains VALUE=DATE and returns error #12

@panfanky

Description

@panfanky

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];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions