File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -32,5 +32,8 @@ class Application < Rails::Application
32
32
33
33
# Fixture paths
34
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
35
38
end
36
39
end
Original file line number Diff line number Diff line change 14
14
15
15
# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
16
16
# Previous versions had false.
17
- ActiveSupport . to_time_preserves_timezone = true
17
+ # ActiveSupport.to_time_preserves_timezone = true
18
18
19
19
# Require `belongs_to` associations by default. Previous versions had false.
20
20
Rails . application . config . active_record . belongs_to_required_by_default = false
You can’t perform that action at this time.
0 commit comments