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:
parent
9cd53d7bcc
commit
7af14b7dac
@ -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");
|
||||
@ -325,4 +325,4 @@ class RfcParser
|
||||
|
||||
return new \DateTimeZone($tzid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user