This is an interesting problem – I’m sure the issue will come down to time zones.
I’m pulling comments from the Facebook comments table: http://developers.facebook.com/docs/reference/fql/comment
That stores a time for the comment (as a Unix timestamp) – but in what timezone?
Will require some investigation.
What timezone is your blog in?
Thread Starter
mtomko
(@mtomko)
My site is set to Central Time (US).
No need to rush on this, just thought I’d bring it up. Thanks!
So I posted yesterday at 3:20 Eastern time, and someone commented on that post.
That comment has a unix timestamp of 1283372870
Which translates to Wed, 01 Sep 2010 20:27:50 GMT
or Wed Sep 01 2010 16:27:50 GMT-0400 (EDT)
in my timezone.
So I guess what I need to do is take the unix timestamp I get from FB and translate it to the timezone set for the blog, based on get_option('gmt_offset');
Thread Starter
mtomko
(@mtomko)
That’s cool! Glad that it wasn’t too hard to find. Appreciate you looking into it.
Fixed in trunk (just checked in and tested – will be in 2.0.9)
Thread Starter
mtomko
(@mtomko)
Awesome! Thanks for looking into it. Much appreciated.
@mtomko I’m going to mark this resolved – but do let us know if it isn’t working for your blog