Page MenuHomePhabricator

D16715.diff
No OneTemporary

D16715.diff

diff --git a/src/parser/calendar/ics/PhutilICSParser.php b/src/parser/calendar/ics/PhutilICSParser.php
--- a/src/parser/calendar/ics/PhutilICSParser.php
+++ b/src/parser/calendar/ics/PhutilICSParser.php
@@ -656,6 +656,10 @@
$duration = $this->newDurationFromProperty($parameters, $value);
$node->setDuration($duration);
break;
+ case 'RRULE':
+ $rrule = $this->newRecurrenceRuleFromProperty($parameters, $value);
+ $node->setRecurrenceRule($rrule);
+ break;
}
}
@@ -760,6 +764,10 @@
return $duration;
}
+ private function newRecurrenceRuleFromProperty(array $parameters, $value) {
+ return PhutilCalendarRecurrenceRule::newFromRRULE($value['value']);
+ }
+
private function getScalarParameterValue(
array $parameters,
$name,

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 4:20 PM (20 h, 26 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6786355
Default Alt Text
D16715.diff (817 B)

Event Timeline