mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Show DST info. Map old offest to Etc zones. Props Otto42. see #3962
git-svn-id: https://develop.svn.wordpress.org/trunk@10757 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3108,7 +3108,7 @@ function wp_timezone_choice($selectedzone) {
|
||||
$zonen[$i]['subcity'] = isset($zone[2]) ? $zone[2] : '';
|
||||
$i++;
|
||||
}
|
||||
|
||||
|
||||
asort($zonen);
|
||||
$structure = '';
|
||||
$pad = ' ';
|
||||
@@ -3133,9 +3133,9 @@ function wp_timezone_choice($selectedzone) {
|
||||
if ( !empty($subcity) ) {
|
||||
$city = $city . '/'. $subcity;
|
||||
}
|
||||
$structure .= "\t<option ".((($continent.'/'.$city)==$selectedzone)?'selected="selected "':'')." value=\"".($continent.'/'.$city)."\">$pad".str_replace('_',' ',$city)."</option>\n"; //Timezone
|
||||
$structure .= "\t<option ".((($continent.'/'.$city)==$selectedzone)?'selected="selected"':'')." value=\"".($continent.'/'.$city)."\">$pad".str_replace('_',' ',$city)."</option>\n"; //Timezone
|
||||
} else {
|
||||
$structure .= "<option ".(($continent==$selectedzone)?'selected="selected "':'')." value=\"".$continent."\">".$continent."</option>\n"; //Timezone
|
||||
$structure .= "<option ".(($continent==$selectedzone)?'selected="selected"':'')." value=\"".$continent."\">".$continent."</option>\n"; //Timezone
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user