Page MenuHomePhabricator

D8342.id19836.diff
No OneTemporary

D8342.id19836.diff

diff --git a/src/applications/people/controller/PhabricatorPeopleProfileController.php b/src/applications/people/controller/PhabricatorPeopleProfileController.php
--- a/src/applications/people/controller/PhabricatorPeopleProfileController.php
+++ b/src/applications/people/controller/PhabricatorPeopleProfileController.php
@@ -167,9 +167,11 @@
$epoch_end = $next_day->format('U');
foreach ($statuses as $status) {
+ if ($status->getDateTo() < $epoch_start) {
+ continue;
+ }
if ($status->getDateFrom() >= $epoch_end) {
- // This list is sorted, so we can stop looking.
- break;
+ continue;
}
$event = new AphrontCalendarEventView();
@@ -180,19 +182,7 @@
$event->setName($status_text);
$event->setDescription($status->getDescription());
$event->setEventID($status->getID());
- $key = date('Y-m-d', $event->getEpochStart());
$events[$epoch_start][] = $event;
- // check if this is a multi day event...!
- $day_iterator = clone $day;
- while (true) {
- $day_iterator->modify('+ 1 day');
- $day_iterator_end = $day_iterator->format('U');
- if ($event->getEpochEnd() > $day_iterator_end) {
- $events[$day_iterator_end][] = $event;
- } else {
- break;
- }
- }
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Sep 20, 7:05 AM (12 h, 27 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6622827
Default Alt Text
D8342.id19836.diff (1 KB)

Event Timeline