Changeset 46864
- Timestamp:
- 12/09/2019 07:54:16 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r46814 r46864 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. … … 3767 3767 // We know this is supposed to be GMT, so we're going to slap that Z on there by force 3768 3768 $dateCreated = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z'; 3769 $comment['comment_date'] = get_date_from_gmt( iso8601_to_datetime( $dateCreated ));3770 $comment['comment_date_gmt'] = iso8601_to_datetime( $dateCreated, ' GMT' );3769 $comment['comment_date'] = get_date_from_gmt( $dateCreated ); 3770 $comment['comment_date_gmt'] = iso8601_to_datetime( $dateCreated, 'gmt' ); 3771 3771 } 3772 3772 … … 5486 5486 5487 5487 if ( ! empty( $dateCreated ) ) { 5488 $post_date = get_date_from_gmt( iso8601_to_datetime( $dateCreated ));5489 $post_date_gmt = iso8601_to_datetime( $dateCreated, ' GMT' );5488 $post_date = iso8601_to_datetime( $dateCreated ); 5489 $post_date_gmt = iso8601_to_datetime( $dateCreated, 'gmt' ); 5490 5490 } else { 5491 5491 $post_date = ''; … … 5875 5875 5876 5876 if ( ! empty( $dateCreated ) ) { 5877 $post_date = get_date_from_gmt( iso8601_to_datetime( $dateCreated ));5878 $post_date_gmt = iso8601_to_datetime( $dateCreated, ' GMT' );5877 $post_date = iso8601_to_datetime( $dateCreated ); 5878 $post_date_gmt = iso8601_to_datetime( $dateCreated, 'gmt' ); 5879 5879 5880 5880 // Flag the post date to be edited.
Note: See TracChangeset
for help on using the changeset viewer.