Changeset 54870
- Timestamp:
- 11/24/2022 02:16:18 PM (22 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/customize/class-wp-customize-date-time-control.php
r52355 r54870 235 235 if ( $tz ) { 236 236 $now = new DateTime( 'now', $tz ); 237 $formatted_gmt_offset = $this->format_gmt_offset( $tz->getOffset( $now ) / 3600);237 $formatted_gmt_offset = $this->format_gmt_offset( $tz->getOffset( $now ) / HOUR_IN_SECONDS ); 238 238 $tz_name = str_replace( '_', ' ', $tz->getName() ); 239 239 $timezone_info['abbr'] = $now->format( 'T' ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r54855 r54870 1798 1798 */ 1799 1799 if ( '0000-00-00 00:00:00' === $post->post_modified_gmt ) { 1800 $post_modified_gmt = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) - ( get_option( 'gmt_offset' ) * 3600) );1800 $post_modified_gmt = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) - ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) ); 1801 1801 } else { 1802 1802 $post_modified_gmt = $post->post_modified_gmt; -
trunk/src/wp-includes/revision.php
r54347 r54870 860 860 } 861 861 862 if ( $locked > $now - 3600) {862 if ( $locked > $now - HOUR_IN_SECONDS ) { 863 863 // Lock is not too old: some other process may be upgrading this post. Bail. 864 864 return false;
Note: See TracChangeset
for help on using the changeset viewer.