method
convert_time_to_time_zone
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter
convert_time_to_time_zone(value)private
No documentation available.
# File activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb, line 29
def convert_time_to_time_zone(value)
return if value.nil?
if value.acts_like?(:time)
value.in_time_zone
elsif value.is_a?(::Float)
value
else
map_avoiding_infinite_recursion(value) { |v| convert_time_to_time_zone(v) }
end
end