Page MenuHomePhabricator

D8329.id.diff
No OneTemporary

D8329.id.diff

Index: src/view/phui/calendar/PHUICalendarListView.php
===================================================================
--- src/view/phui/calendar/PHUICalendarListView.php
+++ src/view/phui/calendar/PHUICalendarListView.php
@@ -5,18 +5,11 @@
private $events = array();
private $blankState;
- protected $user;
-
public function addEvent(AphrontCalendarEventView $event) {
$this->events[] = $event;
return $this;
}
- public function setUser($user) {
- $this->user = $user;
- return $this;
- }
-
public function showBlankState($state) {
$this->blankState = $state;
return $this;
@@ -51,7 +44,9 @@
if ($length >= $timespan) {
$timelabel = pht('All Day');
} else {
- $timelabel = phabricator_time($event->getEpochStart(), $this->user);
+ $timelabel = phabricator_time(
+ $event->getEpochStart(),
+ $this->getUser());
}
$dot = phutil_tag(
@@ -109,10 +104,10 @@
$length = ($event->getEpochEnd() - $event->getEpochStart());
if ($length >= $timespan) {
$tip = pht('%s, Until: %s', $event->getName(),
- phabricator_date($event->getEpochEnd(), $this->user));
+ phabricator_date($event->getEpochEnd(), $this->getUser()));
} else {
$tip = pht('%s, Until: %s', $event->getName(),
- phabricator_time($event->getEpochEnd(), $this->user));
+ phabricator_time($event->getEpochEnd(), $this->getUser()));
}
$description = $event->getDescription();

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 30, 2:39 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6752020
Default Alt Text
D8329.id.diff (1 KB)

Event Timeline