Hi,<br><br>Thanks again for your help, Daniel. Realised the PHP function xmlrpc_encode_request() wasn&#39;t returning the datetime member formatted as below, as it can&#39;t take apart an IXR Date object or a Date::ISO8601 object apart properly, which I&#39;d not anticipated. Assumed it&#39;d check the IXR Date&#39;s asXml() function first, but apparently not. Used SimpleXML to insert the datetime member node as a separate step.<br>
<br>Many thanks,<br><br>AJ<br><br><div class="gmail_quote">On Fri, Oct 30, 2009 at 4:24 PM, Daniel Jalkut <span dir="ltr">&lt;<a href="mailto:jalkut@red-sweater.com">jalkut@red-sweater.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi AJ, you should post a copy of what the actual XML cargo looks like that gets sent over the network.  Otherwise it&#39;s harder for the folks on this list to speculate what might be wrong.<br>
<br>
For your reference, here is an example of a properly formatted dateTime parameter that works:<br>
<br>
                        &lt;name&gt;dateCreated&lt;/name&gt;<br>
                        &lt;value&gt;&lt;dateTime.iso8601&gt;20091029T16:23:02Z&lt;/dateTime.iso8601&gt;&lt;/value&gt;<br>
                        &lt;/member&gt;<br>
<br>
When in doubt about these types of things, a great approach is to find a client that works, and monitor what it sends over the network, to see what you need to mimic.<br>
<br>
Daniel<div><div></div><div class="h5"><br>
<br>
On Oct 30, 2009, at 12:17pm, AJ Cerqueti wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Hi,<br>
<br>
This has clearly been discussed before: <a href="http://comox.textdrive.com/pipermail/wp-xmlrpc/2008-April/000188.html" target="_blank">http://comox.textdrive.com/pipermail/wp-xmlrpc/2008-April/000188.html</a><br>
<br>
If dateCreated is of PHP type DateTime, posting will succeed, when it&#39;s a string in ISO8601 format it fails.<br>
However, no matter what date the DateTime object contains, it doesn&#39;t seem to pass the timestamp.<br>
<br>
E.g.<br>
<br>
$title = htmlentities($title,ENT_NOQUOTES,$encoding);<br>
$keywords = htmlentities($keywords,ENT_NOQUOTES,$encoding);<br>
$datetime = new DateTime(&#39;2008-08-03 14:52:10&#39;);<br>
echo &quot;Formatted ISO: &quot; . $datetime-&gt;format(DATE_ISO8601) . &quot;&lt;br /&gt;\n&quot;;<br>
var_dump($datetime);<br>
<br>
$content = array(<br>
&#39;title&#39;=&gt;$title,<br>
&#39;description&#39;=&gt;$body,<br>
&#39;dateCreated&#39; =&gt; $datetime,<br>
&#39;mt_allow_comments&#39;=&gt;1,<br>
&#39;mt_allow_pings&#39;=&gt;1,<br>
&#39;post_type&#39;=&gt;&#39;post&#39;,<br>
&#39;mt_keywords&#39;=&gt;$keywords,<br>
&#39;categories&#39;=&gt;array($category));<br>
<br>
Will post, but date will be current time.<br>
<br>
Any ideas?<br>
<br>
Cheers,<br>
<br>
AJ<br>
<br>
<br></div></div>
_______________________________________________<br>
wp-xmlrpc mailing list<br>
<a href="mailto:wp-xmlrpc@lists.automattic.com" target="_blank">wp-xmlrpc@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-xmlrpc" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-xmlrpc</a><br>
</blockquote>
<br>
_______________________________________________<br>
wp-xmlrpc mailing list<br>
<a href="mailto:wp-xmlrpc@lists.automattic.com" target="_blank">wp-xmlrpc@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-xmlrpc" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-xmlrpc</a><br>
</blockquote></div><br>