<div dir="ltr"><br>Turns out the version of WP that I'm using as a test blog has an older version of xmlrpc.php <br>that does not have date_created_gmt (only looks for dateCreated in the struct).  Hence, using<br>the date_created_gmt field is yielding exactly the result that I was seeing: use current date.<br>
(I was referencing a local copy of xmlrpc.php that I must have grabbed from a more recent <br>version of WP)<br><br>So now I'm back to the dateCreated situation -- dateCreated interprets the passed in date <br>as GMT.  Which, as it turns out, is exactly what the spec specifies (<a href="http://www.xmlrpc.com/spec">http://www.xmlrpc.com/spec</a>)<br>
<br><dateTime.iso8601>    date/time    19980717T14:08:55 <br><br>Note that there is not TZ (or millisecond) component to the dateTime.iso8601 -- So I'm supposing<br>that my method of offsetting my desired postdate by the diff between the local TZ and GMT is<br>
the only way to get around this . . . <br><br>Also, I started going down the path to dump the XML being sent to the server, but couldn't find<br>anything.  Is there a mechanism on WP to log the XML somewhere??  Would be handy to know <br>
for future debugging.<br><br>thanks<br><br>tom<br><br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Message: 3<br>
Date: Mon, 22 Sep 2008 12:30:48 -0600<br>
From: Joseph Scott <<a href="mailto:joseph@randomnetworks.com" target="_blank">joseph@randomnetworks.com</a>><br>
Subject: Re: [wp-xmlrpc] Using date_created_gmt in a Java<br>
        application??<br>
<br>
<br>
<br>
On Sep 22, 2008, at 9:40 AM, Tom Hoag wrote:<br>
<br>
><br>
> I'm writing a Java app using the redstone xmlrpc library and having<br>
> a problem with both postCreated and date_created_gmt<br>
><br>
> Whenever I set the postCreated field, WP interprets/modifies the<br>
> timezone to GMT. For the time being, I've kludged the date (adding<br>
> the difference between the local TZ and GMT) so that WP gets the<br>
> post date right.  This is ugly and I'd rather not do this . . .<br>
><br>
> It's been suggested that I use the date_created_gmt field, but I've<br>
> had zero luck getting this to work.  It seems that WP cannot parse<br>
> the passed in java.util.Date as a valid date and subsequently<br>
> defaults to the current date.<br>
><br>
> Any thoughts on whats going on here?  Anyone care to share some<br>
> working code?<br>
<br>
<br>
<br>
Can you post the raw XML when using date_created_gmt?  I'm afraid my<br>
Java skills are pretty limited, perhaps someone else will have some<br>
suggestions on that side of things.<br>
<br>
--<br>
Joseph Scott<br>
<a href="mailto:joseph@randomnetworks.com" target="_blank">joseph@randomnetworks.com</a><br>
<a href="http://joseph.randomnetworks.com/" target="_blank">http://joseph.randomnetworks.com/</a><br>
<br>
</blockquote></div><br></div>