title: Twitter Gem showing wrong created at Time
body: <p>I have the following code, using the <code>twitter</code> gem in ruby on rails. It does not return the correct time for tweets created, although I have set my time zone in <code>application.rb</code> and have also set it here. It returns three hours ahead of the time the actual tweet was created.</p>
  
  <pre><code>      &lt;% TwitterFeed.userTweets.each do |tweet| %&gt;
        &lt;blockquote&gt;
          &lt;%= parsed_tweet tweet %&gt;
          &lt;% time_est = tweet.created_at.in_time_zone('Eastern Time (US &amp; Canada)')%&gt;
          &lt;br&gt;&lt;small&gt;&lt;%= (time_est.strftime("%m/%d/%y %I:%M%p %z"))  %&gt;&lt;/small&gt; 
        &lt;/blockquote&gt;
        &lt;% end %&gt;
  </code></pre>
  
  <p>I have the following code in my <code>application_helper.rb</code> to parse the links from the <code>tweet</code> object that is returned</p>
  
  <pre><code>module ApplicationHelper
    def parsed_tweet tweet
      _parsed_tweet = tweet.full_text.dup
  
      tweet.urls.each do |entity|
        html_link = link_to(entity.display_url.to_s, entity.expanded_url.to_s, target: '_blank')
        _parsed_tweet.sub!(entity.url.to_s, html_link)
      end
  
      tweet.media.each do |entity|
        html_link = link_to(entity.display_url.to_s, entity.expanded_url.to_s, target: '_blank')
        _parsed_tweet.sub!(entity.url.to_s, html_link)
      end
  
      _parsed_tweet.html_safe
    end
  end
  </code></pre>
  
  <p>I have the following code in my <code>twitter_feed.rb</code> file where I keep all my functions.</p>
  
  <pre><code>  def self.userTweets
      client.user_timeline("twitter", count: 5, exclude_replies: true, include_rts: false)
    end
  </code></pre>
  
  <p>I am using version 6.2.0 of the <code>twitter</code> gem.</p>