method
to_time_preserves_timezone=
rails latest stable - Class:
ActiveSupport
to_time_preserves_timezone=(value)public
No documentation available.
# File activesupport/lib/active_support.rb, line 116
def self.to_time_preserves_timezone=(value)
unless value
ActiveSupport.deprecator.warn(
"Support for the pre-Ruby 2.4 behavior of to_time has been deprecated and will be removed in Rails 7.2."
)
end
DateAndTime::Compatibility.preserve_timezone = value
end