diff --git a/src/applications/calendar/view/AphrontCalendarMonthView.php b/src/applications/calendar/view/AphrontCalendarMonthView.php index 7134757bc5..b95eff44c0 100644 --- a/src/applications/calendar/view/AphrontCalendarMonthView.php +++ b/src/applications/calendar/view/AphrontCalendarMonthView.php @@ -72,6 +72,8 @@ final class AphrontCalendarMonthView extends AphrontView { $show_events = array(); foreach ($days as $day) { + $day_number = $day->format('j'); + $holiday = idx($this->holidays, $day->format('Y-m-d')); $class = 'aphront-calendar-day'; $weekday = $day->format('w'); @@ -82,7 +84,7 @@ final class AphrontCalendarMonthView extends AphrontView { $day->setTime(0, 0, 0); $epoch_start = $day->format('U'); - $day->setTime(24, 0, 0); + $day->modify('+1 day'); $epoch_end = $day->format('U'); if ($weekday == 0) { @@ -104,7 +106,6 @@ final class AphrontCalendarMonthView extends AphrontView { $event->getEpochEnd() > $epoch_start) { $show_events[$event->getUserPHID()] = $this->renderEvent( $event, - $day, $epoch_start, $epoch_end); } @@ -122,7 +123,7 @@ final class AphrontCalendarMonthView extends AphrontView { $markup[] = '