Skip to content

Commit

Permalink
🐛 Fix timezone setting
Browse files Browse the repository at this point in the history
  • Loading branch information
juzaweb committed Apr 30, 2024
1 parent da14a74 commit 5c18b5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/Backend/Http/Requests/Setting/SettingRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Illuminate\Foundation\Http\FormRequest;
use Juzaweb\CMS\Facades\HookAction;
use Illuminate\Validation\Rule;

class SettingRequest extends FormRequest
{
Expand All @@ -31,6 +32,11 @@ function ($item) {
}
)->toArray();

$rules['timezone'] = [
'nullable',
Rule::in(timezone_identifiers_list()),
];

return $rules;
}

Expand Down

0 comments on commit 5c18b5a

Please sign in to comment.