Hi,<br><br>This has clearly been discussed before: <a href="http://comox.textdrive.com/pipermail/wp-xmlrpc/2008-April/000188.html">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><div style="margin-left: 40px;">$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></div>
<div style="margin-left: 80px;">&#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></div>Will post, but date will be current time.<br><br>Any ideas?<br><br>Cheers,<br><br>AJ<br><br><br>