Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #49038, comment 15


Ignore:
Timestamp:
12/23/2019 04:34:32 AM (5 years ago)
Author:
autotutorial
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49038, comment 15

    v1 v2  
    1515                $tzstring = 'UTC+' . $current_offset;
    1616        }
    17 } elseif ( 0 == $current_offset ) {
     17} elseif ( 'UTC' == $tzstring ) {
    1818    $check_zone_info = false;
    19     $tzstring = 'UTC';
    2019}
    2120
     
    6261<?php endif; ?>
    6362
    64 <?php if ( $check_zone_info && $current_offset ) : ?>
     63<?php if ( $check_zone_info && $tz_string ) : ?>
    6564<p class="timezone-info">
    6665<span>
     
    9796                                                                '<code>' . wp_date( __( 'F j, Y' ) . ' ' . __( 'g:i a' ), $utc, new DateTimeZone( 'UTC' ) ) . '</code>'
    9897                        );
    99                 } else {
     98                } elseif ( $current_offset ) {
    10099                        _e( 'This timezone does not observe daylight saving time.' );
    101100                }