Commit d7447fdc authored by Franco Fichtner's avatar Franco Fichtner

system: the old switcheroo for get_zoneinfo() #242

Show all valid paths, but not 'UTC' as it doesn't exist literally.
parent 6482172a
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment