From d7447fdcc7cce7080d01c05525b1c7aeb128a3f7 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 6 Jul 2015 23:15:10 +0200 Subject: [PATCH] system: the old switcheroo for get_zoneinfo() #242 Show all valid paths, but not 'UTC' as it doesn't exist literally. --- src/etc/inc/system.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index 770479138..b7a1b0de7 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -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()