WordPress.org

Ready to get started?Download WordPress

Forums

Display Tweets
[resolved] Tweet date time at correct time zone (19 posts)

  1. Elisha Terada
    Member
    Posted 1 year ago #

    Looks like the tweets are showing created time based on GTM(0) and not reflecting the user or blog time zone.

    Since each Twitter user setup their own time zone in Twitter account setting, can API read that value and reflect the correct time zone based on the user who tweeted?

    If not, alternative is to read the WordPress time zone setting to display adjusted tweeted time.

    http://wordpress.org/extend/plugins/display-tweets-php/

  2. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Hi @elishaterada, I'll see if this can be changed in the next plugin update :)

  3. Maligno
    Member
    Posted 1 year ago #

  4. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    In v1.0.3 I've changed the date/time to use date_i18n, so hopefully now it should be localised :)

  5. Canadian_Redhead
    Member
    Posted 1 year ago #

    I am having this same problem and I have v1.0.3.

    So if MatthewRuddy said he updated it, it must be something I am doing wrong on my end?

  6. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    @Canadian_Redhead, by how many hours is your time out? What timezone is being displayed?

  7. Canadian_Redhead
    Member
    Posted 1 year ago #

    @MatthewRuddy It is still posting at UTC time. It said 2:43pm, when I actually posted at 8:43am my time (Mountain standard time).

  8. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Weird. I'll have a look into it for you and see what I can do for the next update :)

  9. bravesaturn
    Member
    Posted 1 year ago #

    @MatthewRuddy I also have the newest version of the plugin and my tweets are displaying UTC time while it is CDT my time.

    Overall, I love your plug in. Thank you for making it!

  10. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for that. I'll definitely get looking into this :)

  11. wlovepress
    Member
    Posted 1 year ago #

    Any update on the fix for this date issue?

  12. blackboard-creative
    Member
    Posted 1 year ago #

    I am also having this problem, any word on a fix?

    Also, my timing is off by about 4 hours and I'm in EST. Example: Tweet was posted at 2pm and is displaying 6pm.

  13. ConnorMarc
    Member
    Posted 11 months ago #

    My tweets are 4 hours off as well.
    I made a the last tweet at 6:00pm and it shows 10:03pm, and it's not even 10:03pm as yet.
    See for yourself: http://www.mountainsidesdachurch.org/
    Keep me posted.

  14. spenserpothier
    Member
    Posted 11 months ago #

    I'm also experiencing this problem on a client's website. Currently the timezone is set to Pacific Time (Los Angeles) and the displays are currently 7 hours off.
    For example, the latest tweet was made at 3:42PM but is displaying as 10:42PM on their site.

    I've also double checked that I'm running v1.0.3 which includes the date_i18n update mentioned above.

    Thanks.

  15. justinchildress
    Member
    Posted 9 months ago #

    Great plugin. I'm still running into the same timezone issue though, and it's a big enough deal to my client that I'll need to find an alternative if I can't get the timezone to display properly. The client is in Central Time, is there a way I can hard-code that somewhere since the automatic thing isn't working?

  16. KurtTrowbridge
    Member
    Posted 8 months ago #

    Hello,

    This thread is marked as resolved, but I'm still seeing the issue - tweets are displayed five hours ahead of their scheduled time (EST) and can't seem to find a solution.

    http://impact89fm.org/sports/

    Any help on how to fix this (even if it involves a manual fix) would be greatly appreciated!

  17. Brandon Coppernoll
    Member
    Posted 5 months ago #

    Hello,

    We are experiencing the same here with the time issue. See here: http://noblewhy.com/.

    The tweet is showing 10:09 p.m. even though it was posted at 5:09 p.m. local time. I double-checked that on both Twitter and WordPress the local times were set to Eastern/Indiana. Both checked out. Not sure why this is still happening.

    Please advise.

  18. alanpringle
    Member
    Posted 4 months ago #

    Haven't seen any fixes to this timestamp issue, so I manually removed the time from the plugin code. Look for the line of code under:

    /** Set the date and time format */

    I modified that line to read as follows:

    $datetime_format = apply_filters( 'displaytweets_datetime_format', "l M j" );

    You can see the results of this change at alanpringle.com.

    Not a perfect fix, but I didn't care about the timestamp.

  19. Einkoro
    Member
    Posted 2 months ago #

    To work around this I hooked a function into the action 'displaytweets_tweet_template' and used DisplayTweets::get_instance() to access the plugin's methods and bypass the default template avoiding modifying the plugin directly. Then I added the offset to the timestamp:

    $posted_since = apply_filters( 'displaytweets_posted_since', date_i18n( $datetime_format, strtotime($tweet->created_at) + ( get_option('gmt_offset') * 3600 ) ) );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic