mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
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:
parent
e7f50f9bfe
commit
83274b1fc0
@ -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 />
|
||||
|
Loading…
Reference in New Issue
Block a user