Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14090206
D16715.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
817 B
Referenced Files
None
Subscribers
None
D16715.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D16715: Import RRULEs when parsing Calendar events
Attached
Detach File
Event Timeline
Log In to Comment