Skip to content
Snippets Groups Projects
Unverified Commit 1e4d0565 authored by Kevin Hill's avatar Kevin Hill Committed by GitHub
Browse files

Merge pull request #259 from NelsonBaez/patch-1

Fix "Is not a valid Timezone"
parents ca40b5dd 38214043
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -757,16 +757,8 @@ class DataTable implements Jsonable, JsonSerializable
return false;
}
 
$timezoneList = call_user_func_array('array_merge', timezone_abbreviations_list());
$timezones = array_map(function ($timezone) {
if ($timezone['timezone_id'] != null) {
return strtolower($timezone['timezone_id']);
}
}, $timezoneList);
$timezones = array_filter($timezones, 'is_string');
$timezones = array_unique($timezones);
$timezones = timezone_identifiers_list();
$timezones = array_map('strtolower',$timezones);
 
return in_array(strtolower($tz), $timezones, true);
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment