Page MenuHomePhabricator

D16698.id40198.diff
No OneTemporary

D16698.id40198.diff

diff --git a/src/parser/calendar/data/PhutilCalendarDateTime.php b/src/parser/calendar/data/PhutilCalendarDateTime.php
--- a/src/parser/calendar/data/PhutilCalendarDateTime.php
+++ b/src/parser/calendar/data/PhutilCalendarDateTime.php
@@ -48,7 +48,7 @@
public function newAbsoluteDateTime() {
$epoch = $this->getEpoch();
- $timezone = $this->getTimezone();
+ $timezone = nonempty($this->getTimezone(), 'UTC');
return PhutilCalendarAbsoluteDateTime::newFromEpoch($epoch, $timezone)
->setIsAllDay($this->getIsAllDay())
->setViewerTimezone($this->getViewerTimezone());
diff --git a/src/parser/calendar/data/PhutilCalendarEventNode.php b/src/parser/calendar/data/PhutilCalendarEventNode.php
--- a/src/parser/calendar/data/PhutilCalendarEventNode.php
+++ b/src/parser/calendar/data/PhutilCalendarEventNode.php
@@ -139,24 +139,6 @@
return $this->recurrenceRule;
}
- public function setRecurrenceUntilDateTime(PhutilCalendarDateTime $date) {
- $this->recurrenceUntilDateTime = $date;
- return $this;
- }
-
- public function getRecurrenceUntilDateTime() {
- return $this->recurrenceUntilDateTime;
- }
-
- public function setRecurrenceCount($recurrence_count) {
- $this->recurrenceCount = $recurrence_count;
- return $this;
- }
-
- public function getRecurrenceCount() {
- return $this->recurrenceCount;
- }
-
public function setRecurrenceExceptions(array $recurrence_exceptions) {
assert_instances_of($recurrence_exceptions, 'PhutilCalendarDateTime');
$this->recurrenceExceptions = $recurrence_exceptions;
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
@@ -572,6 +572,7 @@
$buf .= $c;
break;
}
+ $esc = false;
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 3, 7:34 AM (5 d, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6728753
Default Alt Text
D16698.id40198.diff (1 KB)

Event Timeline