Skip to content

Commit 6e5565b

Browse files
author
epriestley
committedNov 15, 2016
Clean up a little more Calendar display logic
Summary: Uh, non-all-day-events said 1:30 - 2:29 PM, which is real silly. Test Plan: Looked at a non-all-day-event. Reviewers: chad Reviewed By: chad Differential Revision: https://secure.phabricator.com/D16874
1 parent ce0cb11 commit 6e5565b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/applications/calendar/storage/PhabricatorCalendarEvent.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -584,10 +584,12 @@ public function renderEventDate(
584584
$min_date = $start->newPHPDateTime();
585585
$max_date = $end->newPHPDateTime();
586586

587-
if ($show_end) {
587+
if ($this->getIsAllDay()) {
588588
// Subtract one second since the stored date is exclusive.
589589
$max_date = $max_date->modify('-1 second');
590+
}
590591

592+
if ($show_end) {
591593
$min_day = $min_date->format('Y m d');
592594
$max_day = $max_date->format('Y m d');
593595

0 commit comments

Comments
 (0)
Failed to load comments.