WordPress.org

Make WordPress Core

Changeset 16751


Ignore:
Timestamp:
12/06/2010 04:32:25 PM (7 years ago)
Author:
nacin
Message:

This should be a string. fixes #15704.

File:
1 edited

Legend:

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

    r16683 r16751  
    11491149            $dateCreated = str_replace( 'Z', '', $content_struct['date_created_gmt']->getIso() ) . 'Z'; // We know this is supposed to be GMT, so we're going to slap that Z on there by force
    11501150            $comment_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
    1151             $comment_date_gmt = iso8601_to_datetime($dateCreated, GMT);
     1151            $comment_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
    11521152        }
    11531153
     
    22602260        if ( !empty( $dateCreated ) ) {
    22612261            $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
    2262             $post_date_gmt = iso8601_to_datetime($dateCreated, GMT);
     2262            $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
    22632263        } else {
    22642264            $post_date = current_time('mysql');
     
    25692569        if ( !empty( $dateCreated ) ) {
    25702570            $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
    2571             $post_date_gmt = iso8601_to_datetime($dateCreated, GMT);
     2571            $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
    25722572        } else {
    25732573            $post_date     = $postdata['post_date'];
Note: See TracChangeset for help on using the changeset viewer.