From 76c2d8b54714bd8415d023463173a61d25afca6e Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Tue, 10 Oct 2023 17:05:38 +0200 Subject: [PATCH] `Calendar`: Ceil the limit for the recurrent entries --- library/Notifications/Widget/Calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Notifications/Widget/Calendar.php b/library/Notifications/Widget/Calendar.php index 82411c004..e47d99168 100644 --- a/library/Notifications/Widget/Calendar.php +++ b/library/Notifications/Widget/Calendar.php @@ -148,7 +148,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; }