method

preserve_timezone

preserve_timezone()
public

No documentation available.

# File activesupport/lib/active_support/core_ext/date_and_time/compatibility.rb, line 24
    def self.preserve_timezone # :nodoc:
      if @@preserve_timezone.nil?
        # Only warn once, the first time the value is used (which should
        # be the first time #to_time is called).
        ActiveSupport.deprecator.warn(
          "to_time will always preserve the timezone offset of the receiver in Rails 8.0. "            "To opt in to the new behavior, set `ActiveSupport.to_time_preserves_timezone = true`."
        )

        @@preserve_timezone = false
      end

      @@preserve_timezone
    end