From 9cf7b141f84aca39cf1b02f1fa55115ed913ddbd Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 29 Dec 2014 21:19:32 +0000 Subject: [PATCH] Fix deployment on Heroku, closes #77 --- app/views/partials/incident.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/partials/incident.blade.php b/app/views/partials/incident.blade.php index cc7c0e7c..f05b32db 100644 --- a/app/views/partials/incident.blade.php +++ b/app/views/partials/incident.blade.php @@ -1,7 +1,9 @@ subDays($i); - $incidents = Incident::whereRaw('DATE(created_at) = "' . $incidentDate->format('Y-m-d') . '"') - ->orderBy('created_at', 'desc')->get(); + $incidents = Incident::whereBetween('created_at', [ + $incidentDate->format('Y-m-d') . ' 00:00:00', + $incidentDate->format('Y-m-d') . ' 23:59:59', + ])->orderBy('created_at', 'desc')->get(); ?>

{{ $incidentDate->format('jS F Y') }}