Show local time when a UTC offset is selected. Props ktdreyer. fixes #13408

git-svn-id: http://svn.automattic.com/wordpress/trunk@14746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-05-19 16:25:55 +00:00
parent e7f50f9bfe
commit 83274b1fc0

View File

@ -183,7 +183,7 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
</select>
<span id="utc-time"><?php printf(__('<abbr title="Coordinated Universal Time">UTC</abbr> time is <code>%s</code>'), date_i18n($timezone_format, false, 'gmt')); ?></span>
<?php if ( get_option('timezone_string') ) : ?>
<?php if ( get_option('timezone_string') || !empty($current_offset) ) : ?>
<span id="local-time"><?php printf(__('Local time is <code>%1$s</code>'), date_i18n($timezone_format)); ?></span>
<?php endif; ?>
<br />