Skip to content

Commit

Permalink
Fix deployment on Heroku, closes #77
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Dec 29, 2014
1 parent df25fc6 commit 9cf7b14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/partials/incident.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
$incidentDate = Carbon::now()->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();
?>
<h4>{{ $incidentDate->format('jS F Y') }}</h4>
<div class='timeline'>
Expand Down

0 comments on commit 9cf7b14

Please sign in to comment.