fix: timezone settings validation

This commit is contained in:
Andras Bacsai committed 2024-11-14 10:02:37 +01:00
1 parent 3bfa21be59
commit b0b81e4416
5 files changed
+30 -13

No files matched your search

+5
View File
@@ -385,6 +385,11 @@ function validate_cron_expression($expression_to_validate): bool
return $isValid;
}
function validate_timezone(string $timezone): bool
{
return in_array($timezone, timezone_identifiers_list());
}
function send_internal_notification(string $message): void
{
try {