Changeset 36163 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 01/03/2016 07:48:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r35964 r36163 1353 1353 1354 1354 if ( ! empty( $dateCreated ) ) { 1355 $post_data['post_date'] = iso8601_to_datetime( $dateCreated);1356 $post_data['post_date_gmt'] = get_gmt_from_date( $post_data['post_date']);1355 $post_data['post_date'] = get_date_from_gmt( iso8601_to_datetime( $dateCreated ) ); 1356 $post_data['post_date_gmt'] = iso8601_to_datetime( $dateCreated, 'GMT' ); 1357 1357 } 1358 1358 … … 3427 3427 // We know this is supposed to be GMT, so we're going to slap that Z on there by force 3428 3428 $dateCreated = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z'; 3429 $comment_date = iso8601_to_datetime( $dateCreated);3430 $comment_date_gmt = get_gmt_from_date( $comment_date);3429 $comment_date = get_date_from_gmt(iso8601_to_datetime($dateCreated)); 3430 $comment_date_gmt = iso8601_to_datetime($dateCreated, 'GMT'); 3431 3431 } 3432 3432 … … 5006 5006 5007 5007 if ( !empty( $dateCreated ) ) { 5008 $post_date = iso8601_to_datetime( $dateCreated);5009 $post_date_gmt = get_gmt_from_date( $post_date);5008 $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated)); 5009 $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT'); 5010 5010 } else { 5011 5011 $post_date = ''; … … 5364 5364 5365 5365 if ( !empty( $dateCreated ) ) { 5366 $post_date = iso8601_to_datetime( $dateCreated);5367 $post_date_gmt = get_gmt_from_date( $post_date, 'GMT');5366 $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated)); 5367 $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT'); 5368 5368 } else { 5369 5369 $post_date = $postdata['post_date'];
Note: See TracChangeset
for help on using the changeset viewer.