Skip to content

Commit 2af2b14

Browse files
tricknotesseanpdoyle
authored andcommitted
Set timezone config explicitly
To disable the following warning: ``` DEPRECATION WARNING: `to_time` will always preserve the receiver timezone rather than system local time in Rails 8.0. To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`. (called from <top (required)> at /Users/ryunosuke.sato/src/github.com/thoughtbot/ember-cli-rails/spec/spec_helper.rb:9) ```
1 parent 75b4f7d commit 2af2b14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/dummy/application.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class Application < Rails::Application
3333
config.secret_token = "SECRET_TOKEN_IS_MIN_30_CHARS_LONG"
3434
config.secret_key_base = "SECRET_KEY_BASE"
3535

36+
config.active_support.to_time_preserves_timezone = :zone
37+
3638
def require_environment!
3739
initialize!
3840
end

0 commit comments

Comments
 (0)