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 receiver timezone rather than system local time in Rails 8.1."            "To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`."
        )

        @@preserve_timezone = false
      end

      @@preserve_timezone
    end