From e393470683a5584ded7a4b8d67caeb1619cc2e92 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 e031c516b..43368a56f 100644 --- a/library/Notifications/Widget/Calendar.php +++ b/library/Notifications/Widget/Calendar.php @@ -144,7 +144,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; }