From 2cd3b71929e39661e253c50206a2ee89410d2a8a Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@9647 602fd350-edb4-49c9-b593-d223f7449a82 --- 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"; ?>