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:
Franco Fichtner 2015-07-06 23:15:10 +02:00
parent 6482172a60
commit d7447fdcc7

View File

@ -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()