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:
@@ -81,7 +81,7 @@ class RotatePasswords extends Command
|
||||
$hour = (int) Setting::get('unifi.password_rotation.hour', 2);
|
||||
$minute = (int) Setting::get('unifi.password_rotation.minute', 0);
|
||||
$dow = (int) Setting::get('unifi.password_rotation.day_of_week', 0);
|
||||
$tz = Setting::get('unifi.timezone', 'UTC');
|
||||
$tz = \App\Support\Timezone::current();
|
||||
$now = now($tz);
|
||||
|
||||
if ($now->hour !== $hour || $now->minute !== $minute) {
|
||||
|
||||
Reference in New Issue
Block a user