• Resolved mtomko

    (@mtomko)


    Hi,

    First I want to say how much I liek WPBook. It is relatively easy to use and it worked right away.

    That said, I was curious as to why the timestamp for imported posts from Facebook is usually a few hours ahead into the future. Is there a hardcoded timezone?

    Thanks for your help.

    -Mike

    http://wordpress.org/extend/plugins/wpbook/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author John Eckman

    (@johneckman)

    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!

    Plugin Author John Eckman

    (@johneckman)

    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.

    Plugin Author John Eckman

    (@johneckman)

    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.

    Plugin Author John Eckman

    (@johneckman)

    @mtomko I’m going to mark this resolved – but do let us know if it isn’t working for your blog

    Thread Starter mtomko

    (@mtomko)

    Thanks John.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘[Plugin: WPBook] Timestamp for Imported Comments’ is closed to new replies.