Title: Time Zone problem? A simple solution
Last modified: August 20, 2016

---

# Time Zone problem? A simple solution

 *  [ppriede](https://wordpress.org/support/users/ppriede/)
 * (@ppriede)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/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
 * **Solution?**
    in line 97 change this…
 *     ```
       // Add individual Tweet data to array
                       $post["date"]                   = date("Y-m-d H:i:s",strtotime($item->get_date()));
       ```
   
 * to this…
 *     ```
       // 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
    [http://wordpress.org/support/topic/display-dates-in-configured-timezone?replies=2](http://wordpress.org/support/topic/display-dates-in-configured-timezone?replies=2)
 * And again, **great plug in.**
 * [http://wordpress.org/extend/plugins/tweets-as-posts/](http://wordpress.org/extend/plugins/tweets-as-posts/)

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

 *  Plugin Author [cparekh](https://wordpress.org/support/users/cparekh/)
 * (@cparekh)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/time-zone-problem-a-simple-solution/#post-3165493)
 * Hi ppriede,
 * Many thanks for that solution and thanks for using the plugin 🙂
 * Regards,
    Chandesh.
 *  [kevintucker](https://wordpress.org/support/users/kevintucker/)
 * (@kevintucker)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/time-zone-problem-a-simple-solution/#post-3165533)
 * Great plugin, great fix for the time zone issue. Thanks guys!!

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

The topic ‘Time Zone problem? A simple solution’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/tweets-as-posts.svg)
 * [Tweets As Posts](https://wordpress.org/plugins/tweets-as-posts/)
 * [Support Threads](https://wordpress.org/support/plugin/tweets-as-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/tweets-as-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tweets-as-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tweets-as-posts/reviews/)

## Tags

 * [solution](https://wordpress.org/support/topic-tag/solution/)
 * [time zone](https://wordpress.org/support/topic-tag/time-zone/)

 * 2 replies
 * 3 participants
 * Last reply from: [kevintucker](https://wordpress.org/support/users/kevintucker/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/time-zone-problem-a-simple-solution/#post-3165533)
 * Status: not resolved