Changeset 46865
- Timestamp:
- 12/09/2019 08:06:37 PM (5 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
-
branches/5.3/src/wp-includes/class-wp-xmlrpc-server.php
r46232 r46865 1470 1470 1471 1471 if ( ! empty( $dateCreated ) ) { 1472 $post_data['post_date'] = get_date_from_gmt( iso8601_to_datetime( $dateCreated ));1473 $post_data['post_date_gmt'] = iso8601_to_datetime( $dateCreated, ' GMT' );1472 $post_data['post_date'] = iso8601_to_datetime( $dateCreated ); 1473 $post_data['post_date_gmt'] = iso8601_to_datetime( $dateCreated, 'gmt' ); 1474 1474 1475 1475 // Flag the post date to be edited. … … 3763 3763 // We know this is supposed to be GMT, so we're going to slap that Z on there by force 3764 3764 $dateCreated = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z'; 3765 $comment['comment_date'] = get_date_from_gmt( iso8601_to_datetime( $dateCreated ));3766 $comment['comment_date_gmt'] = iso8601_to_datetime( $dateCreated, ' GMT' );3765 $comment['comment_date'] = get_date_from_gmt( $dateCreated ); 3766 $comment['comment_date_gmt'] = iso8601_to_datetime( $dateCreated, 'gmt' ); 3767 3767 } 3768 3768 … … 5482 5482 5483 5483 if ( ! empty( $dateCreated ) ) { 5484 $post_date = get_date_from_gmt( iso8601_to_datetime( $dateCreated ));5485 $post_date_gmt = iso8601_to_datetime( $dateCreated, ' GMT' );5484 $post_date = iso8601_to_datetime( $dateCreated ); 5485 $post_date_gmt = iso8601_to_datetime( $dateCreated, 'gmt' ); 5486 5486 } else { 5487 5487 $post_date = ''; … … 5871 5871 5872 5872 if ( ! empty( $dateCreated ) ) { 5873 $post_date = get_date_from_gmt( iso8601_to_datetime( $dateCreated ));5874 $post_date_gmt = iso8601_to_datetime( $dateCreated, ' GMT' );5873 $post_date = iso8601_to_datetime( $dateCreated ); 5874 $post_date_gmt = iso8601_to_datetime( $dateCreated, 'gmt' ); 5875 5875 5876 5876 // Flag the post date to be edited.
Note: See TracChangeset
for help on using the changeset viewer.