method

time_with_zone

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: Zones
time_with_zone(time, zone) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/core_ext/date_and_time/zones.rb, line 32
    def time_with_zone(time, zone)
      if time
        ActiveSupport::TimeWithZone.new(time.utc? ? time : time.getutc, zone)
      else
        ActiveSupport::TimeWithZone.new(nil, zone, to_time(:utc))
      end
    end
Register or log in to add new notes.