method

convert_time_to_time_zone

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: TimeZoneConverter
convert_time_to_time_zone(value) private

No documentation

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

Hide source
# File activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb, line 36
          def convert_time_to_time_zone(value)
            return if value.nil?

            if value.acts_like?(:time)
              value.in_time_zone
            elsif value.respond_to?(:infinite?) && value.infinite?
              value
            else
              map_avoiding_infinite_recursion(value) { |v| convert_time_to_time_zone(v) }
            end
          end
Register or log in to add new notes.