diff --git a/src/Controllers/SchoolTermsController.php b/src/Controllers/SchoolTermsController.php index 38dad23..cea8301 100644 --- a/src/Controllers/SchoolTermsController.php +++ b/src/Controllers/SchoolTermsController.php @@ -160,7 +160,7 @@ public function isDateInTermTime(CarbonInterface $date): bool $whittledDownList = $list->where('schoolYear', '>=', $lastYear); // purpose here is to limit the foreach loop foreach ($whittledDownList as $term) { - if ($date > $term->startDate && $date < $term->finishDate->addDay()) { + if ($date >= $term->startDate && $date < $term->finishDate->addDay()) { return true; } }