Try again to fix off by one
Diff
app/Http/Controllers/Event/TimetableController.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -242,14 +242,14 @@
$carbon = Carbon::now()->setISODate(
Carbon::now()->year,
Carbon::now()->weekOfYear,
$slot->day + 1
$slot->day
)->setTime($slot->hour, 0)->tz(auth()->check() ? auth()->user()->getTimezone() : 'Europe/London');
if (Carbon::now()->weekOfYear !== $carbon->weekOfYear) {
continue;
}
$timetable[$carbon->dayOfWeek - 1][$carbon->hour] = [
$timetable[$carbon->dayOfWeek][$carbon->hour] = [
'id' => $slot->user()->first()->userid,
'name' => $raw ? $slot->user()->first()->getDisplayName()->toHtml() :
$slot->user()->first()->getDisplayName(),