WordPress.org

Make WordPress Core

Ticket #13408: show-utc-r14733.patch

File show-utc-r14733.patch, 856 bytes (added by ktdreyer, 4 years ago)

patch for trunk

  • trunk/wp-admin/options-general.php

     
    185185    <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> 
    186186<?php if ( get_option('timezone_string') ) : ?> 
    187187        <span id="local-time"><?php printf(__('Local time is <code>%1$s</code>'), date_i18n($timezone_format)); ?></span> 
     188<?php elseif ($current_offset) : ?> 
     189        <span id="local-time"><?php printf(__('%1$s is <code>%2$s</code>'), $tzstring, date_i18n($timezone_format)); ?></span> 
    188190<?php endif; ?> 
    189191<br /> 
    190192<span class="description"><?php _e('Choose a city in the same timezone as you.'); ?></span>