Post edited 2:38 pm – March 9, 2010 by Gerhard
I'm using Twitter Widget Pro in the Netherlands, but all the tweets displayed are an hour behind the time Twitter displays. On the Twitter site and on my Wordpress blog, the timezone setting is correct.
It looks like another Twitter widget pluging (WP Twitter by
Catkick@) had the same issue, but it was solved in the last release. I really like Twitter Widget Pro though and want to continue using it. Here's some info from Catkick@ on the problem:
I checked my code and xml file which Twitter generated then found something. Maybe your hosted server does not configure properly or its time zone setting is missing. Here’s what it goes.
1) Twitter generate its time with GMT (default)
2) My php file get GMT time stamp from XML file which Twitter generated.
3) My php file uses date() function to generate local time stamp.
The function date() automatically pulls time zone information from configuration at its local server. I’ve checked XML file and its time stamps are as same as mine.
If you using PHP 5.0 or higher version, you can set timezone within my php file using with date_default_timezone_set(). Inset this function with your local time zone string between line 253 and 254. The code insert is:
date_default_timezone_set( ‘America/Los_Angeles’ );
He fixed it on the latest release:
Today, I’ve released 0.1.8 with fixing timezone issue. Now it’s reading Twitter’s timezone setting so you do not have to adjust it by yourself.
Is there some PHP code I can enter into the Widget Twitter Pro plugin to fix this plugin as well? If so, where do I put it?
Thanks in advance!