diff --git a/src/TicketingServiceProvider.php b/src/TicketingServiceProvider.php index 1673d34..1f52c25 100644 --- a/src/TicketingServiceProvider.php +++ b/src/TicketingServiceProvider.php @@ -69,6 +69,12 @@ class TicketingServiceProvider extends ServiceProvider { $this->callAfterResolving(Schedule::class, function (Schedule $schedule) { $schedule->command('ticketing:auto-close') + // …AND THE CLOCK IS THE SCHOOL'S ([dashboard-shell] #3144). + // ScheduleStagger decides the MINUTE; `dailyAt()` on its own is + // read against config('app.timezone'), which is UTC on every box + // here — so 00:12 was landing at 17:12 the previous afternoon, + // i.e. the nightly sweep ran in the middle of the school day. + ->timezone(\App\Support\Timezone::organisation()) ->dailyAt(\App\Support\Ops\ScheduleStagger::dailyAt('ticketing:auto-close')); }); }