Make WordPress Core

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


Ignore:
Timestamp:
12/23/2019 02:07:09 PM (5 years ago)
Author:
autotutorial
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49038, comment 15

    v2 v3  
    8383                                if ( ! empty( $transitions[1] ) ) {
    8484                echo ' ';
    85                             // Create timestamp UTC +- for display Daylight saving time or Standard time.
    86                             $utc = ( $transitions[0]['offset'] ) > 0 ?
    87                             $transitions[1]['ts'] + $transitions[0]['offset'] :
    88                             $transitions[1]['ts'] - $transitions[0]['offset'];
     85                            // Create timestamp UTC +- ( ex. 2+-1=1 or 2++1=3 ) for display Daylight saving time or Standard time.
     86                            $utc = $transitions[1]['ts'] + $transitions[0]['offset'];
    8987                                $message = $transitions[1]['isdst'] ?
    9088                                /* translators: %s: Date and time. */