From fb050ffd1eb14aff2c34e734156e62a3398915c2 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 6 Apr 2009 16:16:39 +0000 Subject: [PATCH] Improve timezone wording. Props nbachiyski. see #3962 git-svn-id: https://develop.svn.wordpress.org/trunk@10878 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/options-general.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index af697e2160..2a900c0d9d 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -151,8 +151,13 @@ if (empty($tzstring)) { // set the Etc zone if no timezone string exists UTC time is %s'), date_i18n($timezone_format, false, 'gmt')); ?> - %2$s'), $current_offset_name, date_i18n($timezone_format)); ?> -
+ %1$s'), date_i18n($timezone_format)); ?> + +
+ +
+ + %s.') : + __('Standard time begins on: %s.'); $tz = new DateTimeZone($tzstring); $d = new DateTime( "@{$tr['ts']}" ); $d->setTimezone($tz); - printf( $message, /* translators: next daylight savings change time format, see http://php.net/date */ date_i18n(_x('Y-m-d G:i:s T', 'next daylight savings change time format'), $d->format('U') ) ); + printf( $message, date_i18n(get_option('date_format').' '.get_option('time_format'), $d->format('U') ) ); } else { _e('This timezone does not observe daylight savings time.'); } @@ -185,8 +190,6 @@ if (empty($tzstring)) { // set the Etc zone if no timezone string exists ?> -
-