--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Sets <tt>Time.zone</tt> to a TimeZone object for the current request/thread.
- !ruby/struct:SM::Flow::P 
  body: "This method accepts any of the following:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: A Rails TimeZone object.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: An identifier for a Rails TimeZone object (e.g., &quot;Eastern Time (US &amp; Canada)&quot;, <tt>-5.hours</tt>).
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: A TZInfo::Timezone object.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: An identifier for a TZInfo::Timezone object (e.g., &quot;America/New_York&quot;).
  type: :BULLET
- !ruby/struct:SM::Flow::P 
  body: "Here's an example of how you might set <tt>Time.zone</tt> on a per request basis -- <tt>current_user.time_zone</tt> just needs to return a string identifying the user's preferred TimeZone:"
- !ruby/struct:SM::Flow::VERB 
  body: "  class ApplicationController &lt; ActionController::Base\n    before_filter :set_time_zone\n\n    def set_time_zone\n      Time.zone = current_user.time_zone\n    end\n  end\n"
full_name: ActiveSupport::CoreExtensions::Time::Zones::ClassMethods#zone=
is_singleton: false
name: zone=
params: (time_zone)
visibility: public
