WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r36164 r35479  
    13501350
    13511351        if ( ! empty( $dateCreated ) ) {
    1352             $post_data['post_date'] = get_date_from_gmt( iso8601_to_datetime( $dateCreated ) );
    1353             $post_data['post_date_gmt'] = iso8601_to_datetime( $dateCreated, 'GMT' );
     1352            $post_data['post_date'] = iso8601_to_datetime( $dateCreated );
     1353            $post_data['post_date_gmt'] = get_gmt_from_date( $post_data['post_date'] );
    13541354        }
    13551355
     
    34243424            // We know this is supposed to be GMT, so we're going to slap that Z on there by force
    34253425            $dateCreated = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z';
    3426             $comment_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
    3427             $comment_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
     3426            $comment_date = iso8601_to_datetime( $dateCreated );
     3427            $comment_date_gmt = get_gmt_from_date( $comment_date );
    34283428        }
    34293429
     
    49924992
    49934993        if ( !empty( $dateCreated ) ) {
    4994             $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
    4995             $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
     4994            $post_date = iso8601_to_datetime( $dateCreated );
     4995            $post_date_gmt = get_gmt_from_date( $post_date );
    49964996        } else {
    49974997            $post_date = '';
     
    53465346
    53475347        if ( !empty( $dateCreated ) ) {
    5348             $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
    5349             $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
     5348            $post_date = iso8601_to_datetime( $dateCreated );
     5349            $post_date_gmt = get_gmt_from_date( $post_date, 'GMT' );
    53505350        } else {
    53515351            $post_date     = $postdata['post_date'];
Note: See TracChangeset for help on using the changeset viewer.