As said in my previous post, there is a small bug in Word 2007 which causes the post date be wrong when you publish a blog post to your WordPress post. Until they fix the bug, this small hack allows you to post with the correct date and time:

Locate the file xmlrpc.php in your WordPress blog root folder and make a backup copy of it.

In that file, located the mw_newPost function. The line reads:

function mw_newPost($args) {

In that function, locate this line:

$dateCreatedd = $content_struct[’dateCreated’];

Put a double slash in front of it (//) to denote that the line is commented out. The line will look like this:

// $dateCreatedd = $content_struct[’dateCreated’];

Now right below that line add:

$dateCreatedd = “”;

Repeat the steps above for the mw_editPost function

Save the file. That should do it. Now every time you post from Word your drafts and posts will get the current date and time.

Technorati Tags: , ,