diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
index 76ca226c59..1462acb13f 100644
a
|
b
|
class WP_REST_Posts_Controller extends WP_REST_Controller { |
1798 | 1798 | * with the site's timezone offset applied. |
1799 | 1799 | */ |
1800 | 1800 | if ( '0000-00-00 00:00:00' === $post->post_modified_gmt ) { |
1801 | | $post_modified_gmt = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) - ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) ); |
| 1801 | $post_modified_gmt = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) - ( intval( get_option( 'gmt_offset' ) ) * HOUR_IN_SECONDS ) ); |
1802 | 1802 | } else { |
1803 | 1803 | $post_modified_gmt = $post->post_modified_gmt; |
1804 | 1804 | } |