Sha256: bca3dec661cf630e94c684566cc60318ce40043c1a53319202e36103bed32945

Contents?: true

Size: 627 Bytes

Versions: 99

Compression:

Stored size: 627 Bytes

Contents

# frozen_string_literal: true

require "active_support/core_ext/module/attribute_accessors"

module DateAndTime
  module Compatibility
    # If true, +to_time+ preserves the timezone offset of receiver.
    #
    # NOTE: With Ruby 2.4+ the default for +to_time+ changed from
    # converting to the local system time, to preserving the offset
    # of the receiver. For backwards compatibility we're overriding
    # this behavior, but new apps will have an initializer that sets
    # this to true, because the new behavior is preferred.
    mattr_accessor :preserve_timezone, instance_writer: false, default: false
  end
end

Version data entries

99 entries across 90 versions & 11 rubygems

Version Path
activesupport-6.0.4.1 lib/active_support/core_ext/date_and_time/compatibility.rb
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.4/lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-6.0.4 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.2.6 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-6.0.3.7 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.2.4.6 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-6.0.3.6 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.2.5 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-6.0.3.5 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.2.4.5 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-6.0.3.4 lib/active_support/core_ext/date_and_time/compatibility.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/core_ext/date_and_time/compatibility.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.1/lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.2.4.4 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-6.0.3.3 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-6.0.3.2 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-6.0.3.1 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.2.4.3 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-6.0.3 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-6.0.3.rc1 lib/active_support/core_ext/date_and_time/compatibility.rb