Sha256: 9a97949f222446a045e96dbddfedfff630654341f040c723ea267c59bc70fcc0

Contents?: true

Size: 537 Bytes

Versions: 12

Compression:

Stored size: 537 Bytes

Contents

# Be sure to restart your server when you modify this file.

# Preserve the timezone of the receiver when calling to `to_time`.
# Ruby 2.4 will change the behavior of `to_time` to preserve the timezone
# when converting to an instance of `Time` instead of the previous behavior
# of converting to the local system timezone.
#
# Rails 5.0 introduced this config option so that apps made with earlier
# versions of Rails are not affected when upgrading.

if Rails::VERSION::MAJOR >= 5
  ActiveSupport.to_time_preserves_timezone = true
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
izi_lightup-1.0.31 spec/dummy/config/initializers/to_time_preserves_timezone.rb
izi_lightup-1.0.29 spec/dummy/config/initializers/to_time_preserves_timezone.rb
izi_lightup-1.0.28 spec/dummy/config/initializers/to_time_preserves_timezone.rb
izi_lightup-1.0.27 spec/dummy/config/initializers/to_time_preserves_timezone.rb
izi_lightup-1.0.26 spec/dummy/config/initializers/to_time_preserves_timezone.rb
izi_lightup-1.0.25 spec/dummy/config/initializers/to_time_preserves_timezone.rb
izi_lightup-1.0.24 spec/dummy/config/initializers/to_time_preserves_timezone.rb
izi_lightup-1.0.23 spec/dummy/config/initializers/to_time_preserves_timezone.rb
izi_lightup-1.0.22 spec/dummy/config/initializers/to_time_preserves_timezone.rb
izi_lightup-1.0.21 spec/dummy/config/initializers/to_time_preserves_timezone.rb
izi_lightup-1.0.20 spec/dummy/config/initializers/to_time_preserves_timezone.rb
izi_lightup-1.0.19 spec/dummy/config/initializers/to_time_preserves_timezone.rb