WordPress.org

Make WordPress Core

Ticket #13408: show-utc-2.9.2.patch

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

patch for WP 2.9.2

  • options-general.php

     
    167167    <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> 
    168168<?php if (get_option('timezone_string')) : ?> 
    169169        <span id="local-time"><?php printf(__('Local time is <code>%1$s</code>'), date_i18n($timezone_format)); ?></span> 
     170<?php elseif ($current_offset) : ?> 
     171        <span id="local-time"><?php printf(__('%1$s is <code>%2$s</code>'), $tzstring, date_i18n($timezone_format)); ?></span> 
    170172<?php endif; ?> 
    171173<br /> 
    172174<span class="description"><?php _e('Choose a city in the same timezone as you.'); ?></span>