X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/d3b1ea255664edd2deef17f900a655613d20820d..refs/tags/wordpress-2.8.2:/wp-admin/options-general.php
diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php
index cd4b8cdb..3f258885 100644
--- a/wp-admin/options-general.php
+++ b/wp-admin/options-general.php
@@ -157,7 +157,7 @@ if (empty($tzstring)) { // set the Etc zone if no timezone string exists
-
+
time()) {
- $found = true;
+ $found = true;
break;
}
}
@@ -179,10 +179,7 @@ if (empty($tzstring)) { // set the Etc zone if no timezone string exists
$message = $tr['isdst'] ?
__('Daylight savings time begins on: %s
.') :
__('Standard time begins on: %s
.');
- $tz = new DateTimeZone($tzstring);
- $d = new DateTime( "@{$tr['ts']}" );
- $d->setTimezone($tz);
- printf( $message, date_i18n(get_option('date_format').' '.get_option('time_format'), $d->format('U') ) );
+ printf( $message, date_i18n(get_option('date_format').' '.get_option('time_format'), $tr['ts'] ) );
} else {
_e('This timezone does not observe daylight savings time.');
}