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.

I’ve created a small hack:

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 commented out. The line will look like this:

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

Now right below that line add:$dateCreatedd = “”;

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.