Make WordPress Core

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


Ignore:
Timestamp:
12/19/2019 06:49:04 PM (5 years ago)
Author:
autotutorial
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49038, comment 9

    v1 v2  
    2323                                '<code>' . date_i18n(
    2424                                        __( 'F j, Y' ) . ' ' . __( 'g:i a' ),
    25                                         $tr['ts'] + ( $tr['offset'] > $tz_offset ? $tr['offset'] - $tz_offset : $tz_offset - $tr['offset'] )
     25                                        $tr['ts'] + ( $tr['offset'] >= $tz_offset && $tz_offset > 0 ? $tr['offset'] - $tz_offset : ( $tz_offset < $tr['offset'] ? $tr['offset'] - $tz_offset : $tz_offset - $tr['offset'] ) )
    2626}}}
    2727