mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
system: the old switcheroo for get_zoneinfo() #242
Show all valid paths, but not 'UTC' as it doesn't exist literally.
This commit is contained in:
parent
6482172a60
commit
d7447fdcc7
@ -189,10 +189,7 @@ function get_country_codes()
|
||||
|
||||
function get_zoneinfo()
|
||||
{
|
||||
return array_map(
|
||||
function ($path) { return str_replace('/usr/share/zoneinfo/', '', $path); },
|
||||
glob('/usr/share/zoneinfo/*/*')
|
||||
);
|
||||
return timezone_identifiers_list(DateTimeZone::ALL ^ DateTimeZone::UTC);
|
||||
}
|
||||
|
||||
function get_searchdomains()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user