diff --git a/library/Notifications/Widget/Calendar.php b/library/Notifications/Widget/Calendar.php index 0e1a52286..5a6783546 100644 --- a/library/Notifications/Widget/Calendar.php +++ b/library/Notifications/Widget/Calendar.php @@ -152,7 +152,7 @@ public function getEntries(): Traversable $length = $start->diff($end); $visibleHours = Util::diffHours($start, $grid->getGridEnd()); - $limit = (int) floor($visibleHours / (Util::diffHours($start, $end) ?: 0.5)); + $limit = (int) ceil($visibleHours / (Util::diffHours($start, $end) ?: 0.5)); if ($limit > $visibleHours) { $limit = $visibleHours; }