File: //usr/local/rvm/gems/default/doc/activesupport-6.1.4.1/ri/Time/use_zone-c.ri
U:RDoc::AnyMethod[iI"
use_zone:ETI"Time::use_zone;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"JAllows override of <tt>Time.zone</tt> locally inside supplied block; ;TI";resets <tt>Time.zone</tt> to existing value when done.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I":class ApplicationController < ActionController::Base
;TI"$ around_action :set_time_zone
;TI"
;TI" private
;TI"
;TI" def set_time_zone
;TI"8 Time.use_zone(current_user.timezone) { yield }
;TI" end
;TI" end
;T:@format0o;
; [ I"FNOTE: This won't affect any <tt>ActiveSupport::TimeWithZone</tt> ;TI"Fobjects that have already been created, e.g. any model timestamp ;TI"Dattributes that have been read before the block will remain in ;TI"(the application's default timezone.;T:
@fileI".lib/active_support/core_ext/time/zones.rb;T:0@omit_headings_from_table_of_contents_below00I"