When a timezone is manually selected, the timezone needs to be explicity set in the session otherwise the setting changes to a blank timezone (#15890)

This commit is contained in:
eskyuu 2024-03-12 03:55:34 +08:00 committed by GitHub
parent d7c31e0ae3
commit 3463d85053
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class LoadUserPreferences
});
$this->setPreference($request, 'timezone', function ($timezone) use ($request) {
$request->session()->put('preferences.timezone', $timezone);
$request->session()->put('preferences.timezone_static', true);
});