Ticket #6612: xmlrpc.php.diff
| File xmlrpc.php.diff, 1.5 kB (added by josephscott, 8 months ago) |
|---|
-
xmlrpc.php
old new 1306 1306 // Do some timestamp voodoo 1307 1307 if ( !empty( $content_struct['date_created_gmt'] ) ) 1308 1308 $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 1309 elseif ( !empty( $content_struct['dateCreated']) ) 1310 $dateCreated = $content_struct['dateCreated']->getIso(); 1309 elseif ( !empty( $content_struct['dateCreated']) ) { 1310 $dateCreated = new IXR_Date( $content_struct['dateCreated'] ); 1311 $dateCreated = $dateCreated->getIso( ); 1312 } 1311 1313 1312 1314 if ( !empty( $dateCreated ) ) { 1313 1315 $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated)); … … 1575 1577 // Do some timestamp voodoo 1576 1578 if ( !empty( $content_struct['date_created_gmt'] ) ) 1577 1579 $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 1578 elseif ( !empty( $content_struct['dateCreated']) ) 1579 $dateCreated = $content_struct['dateCreated']->getIso(); 1580 elseif ( !empty( $content_struct['dateCreated']) ) { 1581 $dateCreated = new IXR_Date( $content_struct['dateCreated'] ); 1582 $dateCreated = $dateCreated->getIso( ); 1583 } 1580 1584 1581 1585 if ( !empty( $dateCreated ) ) { 1582 1586 $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
