- Timestamp:
- 03/24/2017 05:31:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r40306 r40324 1402 1402 // field with the site's timezone offset applied. 1403 1403 if ( '0000-00-00 00:00:00' === $post->post_date_gmt ) { 1404 $post_date_gmt = date( 'Y-m-d H:i:s', strtotime( $post->post_date ) - ( get_option( 'gmt_offset' ) * 3600 ));1404 $post_date_gmt = get_gmt_from_date( $post->post_date ); 1405 1405 } else { 1406 1406 $post_date_gmt = $post->post_date_gmt;
Note: See TracChangeset
for help on using the changeset viewer.