All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ruby-on-rails-server.to_time_preserves_timezone.rb Maven / Gradle / Ivy

There is a newer version: 7.6.0
Show newest version
# 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.
ActiveSupport.to_time_preserves_timezone = true




© 2015 - 2024 Weber Informatics LLC | Privacy Policy