Skip to content

Commit

Permalink
👍 Validate timezone setting
Browse files Browse the repository at this point in the history
  • Loading branch information
juzaweb committed Apr 30, 2024
1 parent bb0a1ab commit 7eb2e1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/CMS/Facades/Facades.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace Juzaweb\CMS\Facades;

use Illuminate\Support\Collection;
use Illuminate\Validation\Rule;
use Juzaweb\Backend\Models\Post;
use Juzaweb\Backend\Models\Taxonomy;

Expand Down Expand Up @@ -174,6 +175,9 @@ public static function defaultConfigs(): array
],
'timezone' => [
'show_api' => true,
'data' => [
'validators' => ['nullable', 'string', Rule::in(timezone_identifiers_list())],
],
],
'date_format' => [
'show_api' => true,
Expand Down

0 comments on commit 7eb2e1d

Please sign in to comment.