Sha256: fafbdb589dcda534302504868d869347393311174b2e6b0aeaf582f366c5955b

Contents?: true

Size: 591 Bytes

Versions: 22

Compression:

Stored size: 591 Bytes

Contents

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) { false }
  end
end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
activesupport-5.1.7 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.7.rc1 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.6.2 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.6.1 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.6 lib/active_support/core_ext/date_and_time/compatibility.rb
tdiary-5.0.8 vendor/bundle/gems/activesupport-5.1.5/lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.5 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.5.rc1 lib/active_support/core_ext/date_and_time/compatibility.rb
pract6-0.1.0 .gem/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.4 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.4.rc1 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.3 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.3.rc3 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.3.rc2 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.3.rc1 lib/active_support/core_ext/date_and_time/compatibility.rb
tdiary-5.0.5 vendor/bundle/gems/activesupport-5.1.2/lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.2 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.2.rc1 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.1 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.1.0 lib/active_support/core_ext/date_and_time/compatibility.rb