diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php
index 5bd6a6d69c..5b57c91456 100644
--- a/wp-admin/options-general.php
+++ b/wp-admin/options-general.php
@@ -133,17 +133,56 @@ foreach ( $offset_range as $offset ) {
= 0) ? '+' : '') . $offnum;
+}
?>
|
UTC time is %s '), date_i18n(__('Y-m-d G:i:s'), false, 'gmt')); ?>
- %2$s'), get_option('timezone_string'), date_i18n(__('Y-m-d G:i:s'))); ?>
+ %2$s'), get_option('timezone_string'), date_i18n(__('Y-m-d G:i:s'))); ?>
+
+
+
+ time()) {
+ $found = true;
+ break;
+ }
+ }
+
+ if ($found) {
+ _e('This timezone switches to ');
+ $tr['isdst'] ? _e('daylight savings time') : _e('standard time');
+ _e(' on: ');
+ $tz = new DateTimeZone($tzstring);
+ $d = new DateTime( "@{$tr['ts']}" );
+ $d->setTimezone($tz);
+ echo date_i18n(__('Y-m-d \a\t g:i a T'),$d->format('U'));
+ } else {
+ _e('This timezone does not observe daylight savings time.');
+ }
+ }
+ ?>
+
diff --git a/wp-includes/functions.php b/wp-includes/functions.php
index e998a85cde..40fe5c1d99 100644
--- a/wp-includes/functions.php
+++ b/wp-includes/functions.php
@@ -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\n"; //Timezone
+ $structure .= "\t\n"; //Timezone
} else {
- $structure .= "\n"; //Timezone
+ $structure .= "\n"; //Timezone
}
}
|