Standardize on UTC. Props Denis-de-Bernardy. fixes #9793

git-svn-id: https://develop.svn.wordpress.org/trunk@11434 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-05-22 18:16:40 +00:00
parent f2cfe16e7a
commit 7643338f75
1 changed files with 2 additions and 0 deletions

View File

@ -3141,6 +3141,8 @@ function wp_timezone_choice($selectedzone) {
$zone = explode('/',$zone); $zone = explode('/',$zone);
if ( ! in_array($zone[0], $continents) ) if ( ! in_array($zone[0], $continents) )
continue; continue;
if ( $zone[0] == 'Etc' && in_array($zone[1], array('UCT', 'GMT', 'GMT0', 'GMT+0', 'GMT-0', 'Greenwich', 'Universal', 'Zulu')) )
continue;
$zonen[$i]['continent'] = isset($zone[0]) ? $zone[0] : ''; $zonen[$i]['continent'] = isset($zone[0]) ? $zone[0] : '';
$zonen[$i]['city'] = isset($zone[1]) ? $zone[1] : ''; $zonen[$i]['city'] = isset($zone[1]) ? $zone[1] : '';
$zonen[$i]['subcity'] = isset($zone[2]) ? $zone[2] : ''; $zonen[$i]['subcity'] = isset($zone[2]) ? $zone[2] : '';