Class: ReeDatetime::SetDefaultTimeZone

Inherits:
Object
  • Object
show all
Includes:
Ree::FnDSL
Defined in:
lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/set_default_time_zone.rb

Instance Method Summary collapse

Instance Method Details

#call(name) ⇒ Object



12
13
14
15
# File 'lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/set_default_time_zone.rb', line 12

def call(name)
  tzinfo = find_tzinfo(name)
  Thread.current[:default_time_zone] = tzinfo.name
end