From 5c18b5af9fc18a9cca6537bb8b62fb996a33e457 Mon Sep 17 00:00:00 2001 From: Juzaweb <47020363+juzaweb@users.noreply.github.com> Date: Tue, 30 Apr 2024 04:22:04 +0000 Subject: [PATCH] :bug: Fix timezone setting --- modules/Backend/Http/Requests/Setting/SettingRequest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/Backend/Http/Requests/Setting/SettingRequest.php b/modules/Backend/Http/Requests/Setting/SettingRequest.php index d0940308a..7f2cde50c 100644 --- a/modules/Backend/Http/Requests/Setting/SettingRequest.php +++ b/modules/Backend/Http/Requests/Setting/SettingRequest.php @@ -12,6 +12,7 @@ use Illuminate\Foundation\Http\FormRequest; use Juzaweb\CMS\Facades\HookAction; +use Illuminate\Validation\Rule; class SettingRequest extends FormRequest { @@ -31,6 +32,11 @@ function ($item) { } )->toArray(); + $rules['timezone'] = [ + 'nullable', + Rule::in(timezone_identifiers_list()), + ]; + return $rules; }