Skip to Content Skip to Search

module DateAndTime::Compatibility

Public class methods

Source code GitHub
# File activesupport/lib/active_support/core_ext/date_and_time/compatibility.rb, line 22
def self.preserve_timezone
  ActiveSupport.deprecator.warn(
    "`DateAndTime::Compatibility.preserve_timezone` has been deprecated and will be removed in Rails 7.3."
  )
end
Source code GitHub
# File activesupport/lib/active_support/core_ext/date_and_time/compatibility.rb, line 28
def self.preserve_timezone=(value)
  ActiveSupport.deprecator.warn(
    "`DateAndTime::Compatibility.preserve_timezone=` has been deprecated and will be removed in Rails 7.3."
  )
end

Definition files