Thank You get_date_from_gmt()

2009-10-20 10:04 ☼ post

So it turned out that the Fresh From Friendfeed and Twitter plugin was only assigning gmt time stamps to the blog posts it created. That’ss why I was running into the weird posting order for my imported tweets yesterday. I’m kind of surprised that a plugin that’s been around for quite a while would still have this bug- it seems like something most users would want a fix for. Here’s my solution:

In the function get_post($post_date) change this line:

$obj->post_date = $post_date;

to this:

$obj->post_date = get_date_from_gmt($post_date);

I haven’t tested this for Friendfeed itself yet, as I primarily use Twitter, but I thought I’d put this out there for any others that may have been having the same issue. I’m also going to try to contact the plugin author with this fix to see if it can be incorporated in the next revision.