Sha256: 2cbf323db30e4d662aa8f126593365d23f6a3d5e92ab1ba4c19a9abdc3925537

Contents?: true

Size: 408 Bytes

Versions: 45

Compression:

Stored size: 408 Bytes

Contents

require "active_support/core_ext/date_and_time/compatibility"
require "active_support/core_ext/module/remove_method"

class Time
  include DateAndTime::Compatibility

  remove_possible_method :to_time

  # Either return +self+ or the time in the local system timezone depending
  # on the setting of +ActiveSupport.to_time_preserves_timezone+.
  def to_time
    preserve_timezone ? self : getlocal
  end
end

Version data entries

45 entries across 45 versions & 5 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/activesupport-5.0.7.1/lib/active_support/core_ext/time/compatibility.rb
activesupport-4.2.11.3 lib/active_support/core_ext/time/compatibility.rb
activesupport-4.2.11.2 lib/active_support/core_ext/time/compatibility.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/time/compatibility.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/time/compatibility.rb
activesupport-5.1.7 lib/active_support/core_ext/time/compatibility.rb
activesupport-5.1.7.rc1 lib/active_support/core_ext/time/compatibility.rb
activesupport-5.1.6.2 lib/active_support/core_ext/time/compatibility.rb
activesupport-5.0.7.2 lib/active_support/core_ext/time/compatibility.rb
activesupport-4.2.11.1 lib/active_support/core_ext/time/compatibility.rb
activesupport-5.1.6.1 lib/active_support/core_ext/time/compatibility.rb
activesupport-5.0.7.1 lib/active_support/core_ext/time/compatibility.rb
activesupport-4.2.11 lib/active_support/core_ext/time/compatibility.rb
activesupport-5.1.6 lib/active_support/core_ext/time/compatibility.rb
activesupport-5.0.7 lib/active_support/core_ext/time/compatibility.rb
tdiary-5.0.8 vendor/bundle/gems/activesupport-5.1.5/lib/active_support/core_ext/time/compatibility.rb
activesupport-5.1.5 lib/active_support/core_ext/time/compatibility.rb
activesupport-5.1.5.rc1 lib/active_support/core_ext/time/compatibility.rb
pract6-0.1.0 .gem/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/core_ext/time/compatibility.rb
activesupport-4.2.10 lib/active_support/core_ext/time/compatibility.rb