mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
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
This commit is contained in:
parent
ce0cb115ca
commit
6e5565b3ff
1 changed files with 3 additions and 1 deletions
|
@ -584,10 +584,12 @@ final class PhabricatorCalendarEvent extends PhabricatorCalendarDAO
|
|||
$min_date = $start->newPHPDateTime();
|
||||
$max_date = $end->newPHPDateTime();
|
||||
|
||||
if ($show_end) {
|
||||
if ($this->getIsAllDay()) {
|
||||
// Subtract one second since the stored date is exclusive.
|
||||
$max_date = $max_date->modify('-1 second');
|
||||
}
|
||||
|
||||
if ($show_end) {
|
||||
$min_day = $min_date->format('Y m d');
|
||||
$max_day = $max_date->format('Y m d');
|
||||
|
||||
|
|
Loading…
Reference in a new issue