Module: Appoxy::TimeStuff::StringTimezoner
- Defined in:
- lib/ui/time_zoner.rb
Instance Method Summary collapse
Instance Method Details
#to_user_time(user) ⇒ Object
39 40 41 42 43 44 |
# File 'lib/ui/time_zoner.rb', line 39 def to_user_time(user) tz = ActiveSupport::TimeZone.new(user.time_zone || 'Pacific Time (US & Canada)') # puts 'tz=' + tz.inspect t = tz.parse(self) return t end |