Time Zone problem? A simple solution
Well, first thins first
Great Plugin, just what I was looking for…and works great…
Well, I was to post a problem (well, two problems, but the other will be another post), but i found the solution
So, the update are every 30 minutes, so the post will get the real time (about line 99 in tweets-as-posts-class.php)
But in my case, my time zone is different from the timezone of my server
So, I have -3, and when I want to update my post… the post get “scheduled” for +3 hours
So is not working properly
in line 97 change this…
// Add individual Tweet data to array $post["date"] = date("Y-m-d H:i:s",strtotime($item->get_date()));
// Add individual Tweet data to array date_default_timezone_set(get_option('timezone_string')); $post["date"] = date("Y-m-d H:i:s",strtotime($item->get_date()));
Thanks to this post for the inspiration
And again, great plug in.
- The topic ‘Time Zone problem? A simple solution’ is closed to new replies.