Ticket #18998: class-wp-xmlrpc-server.diff
File class-wp-xmlrpc-server.diff, 1.5 KB (added by , 13 years ago) |
---|
-
class-wp-xmlrpc-server.php
old new 1204 1204 // Do some timestamp voodoo 1205 1205 if ( !empty( $content_struct['date_created_gmt'] ) ) { 1206 1206 $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 1207 $comment_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));1208 1207 $comment_date_gmt = iso8601_to_datetime($dateCreated, 'GMT'); 1208 $comment_date = get_date_from_gmt($comment_date_gmt); 1209 1209 } 1210 1210 1211 1211 if ( isset($content_struct['content']) ) … … 2375 2375 $dateCreated = $content_struct['dateCreated']->getIso(); 2376 2376 2377 2377 if ( !empty( $dateCreated ) ) { 2378 $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));2379 2378 $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT'); 2379 $post_date = get_date_from_gmt($post_date_gmt); 2380 2380 } else { 2381 2381 $post_date = current_time('mysql'); 2382 2382 $post_date_gmt = current_time('mysql', 1); … … 2703 2703 $dateCreated = $content_struct['dateCreated']->getIso(); 2704 2704 2705 2705 if ( !empty( $dateCreated ) ) { 2706 $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));2707 2706 $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT'); 2707 $post_date = get_date_from_gmt($post_date_gmt); 2708 2708 } else { 2709 2709 $post_date = $postdata['post_date']; 2710 2710 $post_date_gmt = $postdata['post_date_gmt'];