author | Jordan Doyle <jordan@doyle.wf> | 2016-06-22 3:34:27.0 +01:00:00 |
---|---|---|
committer | Jordan Doyle <jordan@doyle.wf> | 2016-06-22 3:34:27.0 +01:00:00 |
commit | ecf0210ddbd4f5c35f13898a937a2913fe414551 [patch] |
|
tree | 15f97ce1ff8366361526cde5f8f9bd601e4e0186 |
|
parent | a574c535705b29fc35bcbf98eac1b164176d7714 |
|
download | ecf0210ddbd4f5c35f13898a937a2913fe414551.tar.gz |
Get the correct day, off by one error.
Diff
app/Http/Controllers/Event/TimetableController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Event/TimetableController.php b/app/Http/Controllers/Event/TimetableController.php index d4023d3..344b3bb 100644 --- a/app/Http/Controllers/Event/TimetableController.php +++ a/app/Http/Controllers/Event/TimetableController.php @@ -187,7 +187,7 @@ { $event = Event::where('week', Carbon::now()->weekOfYear) ->where('year', Carbon::now()->year) ->where('day', Carbon::now()->format('N')) ->where('day', Carbon::now()->format('N') - 1) ->where('hour', Carbon::now()->hour) ->where('approved', true) ->first();