Changeset 40325 for branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Timestamp:
- 03/24/2017 05:52:02 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
- Property svn:mergeinfo changed
/trunk merged: 40284,40324
- Property svn:mergeinfo changed
-
branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r40137 r40325 1394 1394 // field with the site's timezone offset applied. 1395 1395 if ( '0000-00-00 00:00:00' === $post->post_date_gmt ) { 1396 $post_date_gmt = date( 'Y-m-d H:i:s', strtotime( $post->post_date ) - ( get_option( 'gmt_offset' ) * 3600 ));1396 $post_date_gmt = get_gmt_from_date( $post->post_date ); 1397 1397 } else { 1398 1398 $post_date_gmt = $post->post_date_gmt;
Note: See TracChangeset
for help on using the changeset viewer.