mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
Coding Standards: Use HOUR_IN_SECONDS where appropriate.
This aims to clarify the time units for some time offset values. Follow-up to [21996], [23823], [40108], [41626]. See #56791. git-svn-id: https://develop.svn.wordpress.org/trunk@54870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -234,7 +234,7 @@ class WP_Customize_Date_Time_Control extends WP_Customize_Control {
|
||||
|
||||
if ( $tz ) {
|
||||
$now = new DateTime( 'now', $tz );
|
||||
$formatted_gmt_offset = $this->format_gmt_offset( $tz->getOffset( $now ) / 3600 );
|
||||
$formatted_gmt_offset = $this->format_gmt_offset( $tz->getOffset( $now ) / HOUR_IN_SECONDS );
|
||||
$tz_name = str_replace( '_', ' ', $tz->getName() );
|
||||
$timezone_info['abbr'] = $now->format( 'T' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user