File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ def self.to_time_preserves_timezone
117
117
def self . to_time_preserves_timezone = ( value )
118
118
if !value
119
119
ActiveSupport . deprecator . warn (
120
- "`to_time` will always preserve the receiver timezone rather than system local time in Rails 8.0." \
120
+ "`to_time` will always preserve the receiver timezone rather than system local time in Rails 8.0. " \
121
121
"To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`."
122
122
)
123
123
elsif value != :zone
Original file line number Diff line number Diff line change @@ -4619,8 +4619,8 @@ def view_test
4619
4619
4620
4620
add_to_config <<-RUBY
4621
4621
routes.prepend do
4622
- get "foo/controller", to: "foo#controller_test"
4623
- get "foo/view", to: "foo#view_test"
4622
+ get "foo/controller" => "foo#controller_test"
4623
+ get "foo/view" => "foo#view_test"
4624
4624
end
4625
4625
RUBY
4626
4626
Original file line number Diff line number Diff line change @@ -265,6 +265,7 @@ def self.name; "RailtiesTestApp"; end
265
265
@app . config . active_support . deprecation = :log
266
266
@app . config . log_level = :error
267
267
@app . config . secret_key_base = "b3c631c314c0bbca50c1b2843150fe33"
268
+ @app . config . active_support . to_time_preserves_timezone = :zone
268
269
269
270
yield @app if block_given?
270
271
@app . initialize!
You can’t perform that action at this time.
0 commit comments