We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6706c7 commit d4baa5fCopy full SHA for d4baa5f
config/application.rb
@@ -32,5 +32,8 @@ class Application < Rails::Application
32
33
# Fixture paths
34
config.fixture_paths = [Rails.root.join('spec/fixtures')]
35
+
36
+ # Rails 8.0: `to_time` will always preserve the full timezone in Rails 8.1.
37
+ config.active_support.to_time_preserves_timezone = :zone
38
end
39
config/initializers/new_framework_defaults.rb
@@ -14,7 +14,7 @@
14
15
# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
16
# Previous versions had false.
17
-ActiveSupport.to_time_preserves_timezone = true
+#ActiveSupport.to_time_preserves_timezone = true
18
19
# Require `belongs_to` associations by default. Previous versions had false.
20
Rails.application.config.active_record.belongs_to_required_by_default = false
0 commit comments