From c622d0373a1c300a413c96baf998db65b70cf0d6 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 12 Nov 2008 21:44:55 +0000 Subject: [PATCH] Show user specified offset, not server offset, when displaying time. see #8153 git-svn-id: http://svn.automattic.com/wordpress/trunk@9647 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-general.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 12b6d1909b..fceac86ba5 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -121,7 +121,7 @@ foreach ( $offset_range as $offset ) { UTC time is %s'), date_i18n(__('Y-m-d G:i:s'), false, 'gmt')); ?> - %2$s'), $current_offset_name, date_i18n(__('Y-m-d G:i:s'))); ?> + %2$s'), $current_offset_name, date_i18n(__('Y-m-d G:i:s'), current_time('timestamp'), 'gmt')); ?>
@@ -148,12 +148,12 @@ foreach ( $offset_range as $offset ) { echo " checked='checked'"; $custom = FALSE; } - echo ' /> ' . date_i18n( $format ) . "
\n"; + echo ' /> ' . date_i18n( $format, current_time('timestamp'), 'gmt' ) . "
\n"; } echo ' ' . date_i18n( get_option('date_format') ) . "\n"; + echo '/> ' . __('Custom:') . ' ' . date_i18n( get_option('date_format'), current_time('timestamp'), 'gmt' ) . "\n"; echo "\t

" . __('Documentation on date formatting. Click "Save Changes" to update sample output.') . "

\n"; ?> @@ -180,12 +180,12 @@ foreach ( $offset_range as $offset ) { echo " checked='checked'"; $custom = FALSE; } - echo ' /> ' . date_i18n( $format ) . "
\n"; + echo ' /> ' . date_i18n( $format, current_time('timestamp'), 'gmt' ) . "
\n"; } echo ' ' . date_i18n( get_option('time_format') ) . "\n"; + echo '/> ' . __('Custom:') . ' ' . date_i18n( get_option('time_format'), current_time('timestamp'), 'gmt' ) . "\n"; ?>