Ticket #60105: 60105.diff
File 60105.diff, 926 bytes (added by , 8 months ago) |
---|
-
src/wp-includes/script-loader.php
417 417 $timezone_abbr = $timezone_date->format( 'T' ); 418 418 } 419 419 420 $gmt_offset = get_option( 'gmt_offset', 0 ); 421 420 422 $scripts->add_inline_script( 421 423 'wp-date', 422 424 sprintf( … … 473 475 'datetimeAbbreviated' => __( 'M j, Y g:i a' ), 474 476 ), 475 477 'timezone' => array( 476 'offset' => (float) get_option( 'gmt_offset', 0 ), 477 'string' => $timezone_string, 478 'abbr' => $timezone_abbr, 478 'offset' => (float) $gmt_offset, 479 'offsetFormatted' => str_replace( array( '.25', '.5', '.75' ), array( ':15', ':30', ':45' ), (string) $gmt_offset ), 480 'string' => $timezone_string, 481 'abbr' => $timezone_abbr, 479 482 ), 480 483 ) 481 484 )