method
to_time_preserves_timezone=
v7.2.3 -
Show latest stable
- Class:
ActiveSupport
to_time_preserves_timezone=(value)public
No documentation available.
# File activesupport/lib/active_support.rb, line 117
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 8.0."
)
end
DateAndTime::Compatibility.preserve_timezone = value
end