title: pulling dateTime back a few hours (rails)
body: <p>I have some SMS messages that are being rendered 6 hours later than they should be.  I am thinking there is a timezone issue, but i want to at the minimum pull it back the 6 hours and get that pushed out before I go ahead with finding the root of the bug. </p>
  
  <p>However I've been having a very frustrating experience trying to change this.  </p>
  
  <p>I've tried making a change within my view which is looking like so. The crux of the bus is on the <code>message.date_sent</code></p>
  
  <pre><code>        - @twilio_client.account.sms.messages.list({:to =&gt; @player.phone})[0,5].each do |message|
            %tr
              %td= message.date_sent
              %td= message.from
              %td= message.to
              %td= message.status
              %td
                = message.sid
                %br
                = message.body
  </code></pre>
  
  <p>Initially I thought the solution could be in the view, and went toward <code>td= message.date_sent(-6.hours)</code> however I run into errors that the <code>-</code> is not a defined method. </p>
  
  <p>In my controller I tried creating something like</p>
  
  <pre><code>def minus6
    -6.hours
  end
  </code></pre>
  
  <p>and then tried placing that in the end of my view like <code>td= message.date_sent.minus6</code> However I again run into <code>undefined method 'minus6' for "Wed, 27 Jan 2016 20:22:34"</code></p>
  
  <p>If anybody could help me with this, I would greatly be appreciated. </p>