Title: Timezone Offset Issue
Last modified: August 22, 2016

---

# Timezone Offset Issue

 *  Resolved [mikedunn](https://wordpress.org/support/users/mikedunn/)
 * (@mikedunn)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/timezone-offset-issue/)
 * I’m having two issues I’ll post separately.
 * The first is that the timezone offset doesn’t seem to be working for me. I posted
   a tweet at 10:53AM today (EDT or UTC -4). When it was imported into WordPress,
   it was set as scheduled to publish at 2:53PM EDT.
 * in other words, it seems to be ignoring my WordPress datetime setting.
 * [https://wordpress.org/plugins/import-tweets-as-posts/](https://wordpress.org/plugins/import-tweets-as-posts/)

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

 *  Plugin Author [Chandan Kumar](https://wordpress.org/support/users/chandanonline4u/)
 * (@chandanonline4u)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/timezone-offset-issue/#post-5242759)
 * Yes it is ignoring the WordPress timezone settings. It is using your twitter 
   timezone setting to set published date.
 * If you want to set it as per your WordPress Timezone you can customize plugin.
   Open ‘import-twets-as-posts.php’ file and replace the following code:
 *     ```
       $tweet_post_time = strtotime($tweet->created_at) + $tweet->user->utc_offset;
       ```
   
 * **To: **
 *     ```
       $tweet_time = strtotime($tweet->created_at);
       $wp_offset = get_option('gmt_offset');
       if($wp_offset){
         $tweet_post_time = $tweet_time + ($wp_offset * 3600);
       } else {
         $tweet_post_time = $tweet_time + $tweet->user->utc_offset;
       }
       ```
   
 * Hope this will help you.
 *  Plugin Author [Chandan Kumar](https://wordpress.org/support/users/chandanonline4u/)
 * (@chandanonline4u)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/timezone-offset-issue/#post-5242768)
 * Also added option under plugin’s setting to set tweet publish date as per WordPress
   timezone in updated version 1.5. Let me know if this works for you.
 *  Thread Starter [mikedunn](https://wordpress.org/support/users/mikedunn/)
 * (@mikedunn)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/timezone-offset-issue/#post-5242785)
 * Just tested. Works great.

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

The topic ‘Timezone Offset Issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/import-tweets-as-posts_cedae3.svg)
 * [Import Tweets as Posts](https://wordpress.org/plugins/import-tweets-as-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-tweets-as-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-tweets-as-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/import-tweets-as-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-tweets-as-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-tweets-as-posts/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [mikedunn](https://wordpress.org/support/users/mikedunn/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/timezone-offset-issue/#post-5242785)
 * Status: resolved