title: Set current Time.zone in Rails?
body: <p>Javascript on my page saves client UTC offset to the cookie.
  How do I use this cookie to create a TimeZone and assign it to Time.zone ?</p>
  
  <p>I need something like:</p>
  
  <pre><code>before_filter :set_time_zone
  
  def set_time_zone
    Time.zone = ActiveSupport::TimeZone.new('my timezone', cookies[:timezone])
  end
  </code></pre>
  
  <p>except that the right part of this expression does not work and I'm not sure if I'm going the right way here. Can't get it.</p>