[wp-xmlrpc] Using date_created_gmt in a Java application??

Joseph Scott joseph at randomnetworks.com
Mon Sep 22 18:30:48 GMT 2008


On Sep 22, 2008, at 9:40 AM, Tom Hoag wrote:

>
> I'm writing a Java app using the redstone xmlrpc library and having  
> a problem with both postCreated and date_created_gmt
>
> Whenever I set the postCreated field, WP interprets/modifies the  
> timezone to GMT. For the time being, I've kludged the date (adding  
> the difference between the local TZ and GMT) so that WP gets the  
> post date right.  This is ugly and I'd rather not do this . . .
>
> It's been suggested that I use the date_created_gmt field, but I've  
> had zero luck getting this to work.  It seems that WP cannot parse  
> the passed in java.util.Date as a valid date and subsequently  
> defaults to the current date.
>
> Any thoughts on whats going on here?  Anyone care to share some  
> working code?



Can you post the raw XML when using date_created_gmt?  I'm afraid my  
Java skills are pretty limited, perhaps someone else will have some  
suggestions on that side of things.

--
Joseph Scott
joseph at randomnetworks.com
http://joseph.randomnetworks.com/






More information about the wp-xmlrpc mailing list