I'm trying to set the post_date via XML-RPC and keep getting an error saying the XML isn't formatted properly. The code goes something like:
$post = get_post( $post_id ); $response = $client->query( 'wp.editPost', array( 0, $user, $pw, array( 'post_date' => $post->post_date ) ) );
I'm hitting the same issue with
wp.newPost. I know the date should be formatted ISO8601 but I'm just having no luck getting it formatted right.