Support » Plugin: Latest Tweets Widget » Time Zone Off

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author timwhitlock


    This plugin uses WordPress’s internal date formatting, which in turn use PHP’s internal date formatting, which in turn uses your server’s operating system.

    As far as I can tell your tweet times are accurate in UTC.
    Based on this I’d guess that your server is configured to use UTC instead of your timezone.

    If you think there really is an error in my relative time calculations, then please post the tweet that is incorrect, the time you tweeted it and the time your site is saying you tweeted it. Looking at your last three tweets, it seems to make sense with regard to my points above.

    Plugin Author timwhitlock


    closed after a week with no follow up. I can’t see a problem with the plugin

    Just wanted to note that I’m having the same problem with the timestamp on the embedded tweet not matching up with the timestamp from twitter. The time zone appears to be off by several hours.

    This has been noted on 2 separate sites which are using this plugin. On both sites the time zone has been properly configured in the WordPress settings.

    Is there something else I need to be doing?


    Plugin Author timwhitlock


    Can you provide links that demonstrate this please?

    Plugin Author timwhitlock


    Hello all.

    I’ve looked further into this and made a fix in the current Development Version.

    I’d appreciate it if you could test this version out and if it appears stable, I’ll publish it to 1.0.14.

    Some info in case someone’s googling WordPress timezone problems:

    WordPress allows you to set your timezone in admin settings (the WP option is called ‘timezone_string’), but PHP knows nothing about this unless it is passed to the native date_default_timezone_set.

    WordPress kindly does this on the admin screen where you set the timezone option, but this won’t persist and nowhere else in the system does this get set. The rest of the time your system is forced into UTC and WordPress tries to handle things itself. However, if you try to format a date with a timezone, all WP does is tack the offset onto the end of the date, creating an incorrect date.



    Hey Tim – thanks for looking into this.

    I’ve installed the dev version on two sites, and am still seeing times off by 3 hours (for east coast time – 2 hours if the site is set for central time).

    Is it not possible to grab the time straight from the Tweet itself?

    Plugin Author timwhitlock


    the time does come from the Tweet itself, and Twitter provide it in UTC. WordPress then has to convert it based on your timezone setting, which is what is failing for you.

    Can you please post a link to an example Tweet?

    Apologies for not following up on this sooner.

    The site that I’m getting this problem on is [link deleted].

    If you click on the permalink for the tweet itself, you’ll see that Twitter’s official timestamp is several hours off from what the plugin is displaying.

    The timezone for this site in question is set to “Los Angeles” within the WP admin panel.

    Please let me know if there is any other information that I can provide.


    D’oh! Please excuse my last post.

    I realized your plugin had an update available. Just applied the update and now all is fixed.

    Thanks again!

    Plugin Author timwhitlock


    No problem.
    Good to know the fix is working for others.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Time Zone Off’ is closed to new replies.