diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index ba601819..ac052e0f 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -105,7 +105,7 @@ public function index(Request $request) from controls c1 left join controls c2 on c2.next_id=c1.id left join domains on c1.domain_id=domains.id - where (c1.realisation_date is null) and (c1.plan_date < NOW() + INTERVAL 30 DAY) + where (c1.realisation_date is null) and (c1.plan_date < '" . Carbon::today()->addDays(30)->format('Y-m-d') . "') order by c1.plan_date" );