1
0
mirror of https://github.com/rlanvin/php-rrule.git synced 2024-11-28 05:24:10 +01:00

Better handle TZ with Exchange / M365 generated iCal files

This commit is contained in:
Erik 2023-09-14 21:36:22 +02:00 committed by Rémi Lanvin
parent 9cd53d7bcc
commit 7af14b7dac

View File

@ -221,7 +221,7 @@ class RfcParser
foreach ($property['params'] as $name => $value) {
switch (strtoupper($name)) {
case 'TZID':
$tz = new \DateTimeZone($value);
$tz = self::parseTimeZone($value);
break;
case 'VALUE':
switch ($value) {
@ -284,7 +284,7 @@ class RfcParser
// Ignore optional words
break;
case 'TZID':
$tz = new \DateTimeZone($value);
$tz = self::parseTimeZone($value);
break;
default:
throw new \InvalidArgumentException("Unknown property parameter: $name");