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
3232
3333 # Fixture paths
3434 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
3538 end
3639end
Original file line number Diff line number Diff line change 1414
1515# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
1616# Previous versions had false.
17- ActiveSupport . to_time_preserves_timezone = true
17+ # ActiveSupport.to_time_preserves_timezone = true
1818
1919# Require `belongs_to` associations by default. Previous versions had false.
2020Rails . application . config . active_record . belongs_to_required_by_default = false
You can’t perform that action at this time.
0 commit comments