Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.2.4

Bug #10354 MetaWeblog: dateCreated not valid w/ Patch
Submitted: 2007-03-13 11:32 UTC Modified: 2007-04-04 06:58 UTC
From: tacker Assigned: cweiske
Status: Closed Package: Services_Blogging (version 0.1.0)
PHP Version: 5.2.1 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-03-13 11:32 UTC] tacker (Markus Tacker)
Description: ------------ The dateCreated value was not accepted by Wordpress' XMLRPC so I figured that the value is not created the right way in Services_Blogging_Driver_MetaWeblog. This is the fix: --- MetaWeblog.php.orig 2007-03-13 17:27:42.000000000 +0100 +++ MetaWeblog.php 2007-03-13 17:28:09.000000000 +0100 @@ -312,7 +312,7 @@ return new XML_RPC_Value( array( 'categories' => new XML_RPC_Value($categories, 'array'), - 'dateCreated' => date('Ymd\\TH:i:s', $time), + 'dateCreated' => new XML_RPC_Value(date('Ymd\\TH:i:s', $time), 'dateTime.iso8601'), 'description' => new XML_RPC_Value($post->{Services_Blogging_Post::CONTENT}, 'string'), 'title' => new XML_RPC_Value($post->{Services_Blogging_Post::TITLE}, 'string') ),

Comments

 [2007-04-04 06:58 UTC] cweiske (Christian Weiske)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.