refactor: read timezone from shell-level site_timezone

Drops unifi.timezone from the settings form (now lives in
Admin → Settings on the shell). Schedulers (PPSK sync, password
rotation) now read \App\Support\Timezone::current() — same fallback
chain as the rest of the platform.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-23 15:26:50 -04:00
parent 996f6f0371
commit f7672771e0
3 changed files with 2 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ class SyncPpskSchedules extends Command
return self::SUCCESS;
}
$tz = Setting::get('unifi.timezone', 'UTC');
$tz = \App\Support\Timezone::current();
$now = now($tz);
$day = $now->dayOfWeek; // 0=Sun … 6=Sat
$slot = $now->hour * 2 + ($now->minute >= 30 ? 1 : 0); // 047