Module: TzMagic::ApplicationHelper
- Defined in:
- app/helpers/tz_magic/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#time_zone ⇒ Object
4 5 6 7 |
# File 'app/helpers/tz_magic/application_helper.rb', line 4 def time_zone name = session[:timezone] ? session[:timezone] : "UTC" ActiveSupport::TimeZone[name] end |