Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Silence time zone deprecation warning #228

Open
jessieay opened this issue Sep 21, 2016 · 0 comments
Open

Silence time zone deprecation warning #228

jessieay opened this issue Sep 21, 2016 · 0 comments

Comments

@jessieay
Copy link
Contributor

seeing this in Travis;

DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This
still causes `String`s to be parsed as if they were in `Time.zone`,
and `Time`s to be converted to `Time.zone`.
To keep the old behavior, you must add the following to your initializer:
    config.active_record.time_zone_aware_types = [:datetime]
To silence this deprecation warning, add the following:
    config.active_record.time_zone_aware_types = [:datetime, :time]
 (called from _app_views_scheduled_messages_index_html_erb___3955218739433732987_29240280 at /home/travis/build/18F/dolores-landingham-slack-bot/app/views/scheduled_messages/index.html.erb:29)
.You're running an old version of PhantomJS, update to >= 2.1.1 for a better experience.
DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This
still causes `String`s to be parsed as if they were in `Time.zone`,
and `Time`s to be converted to `Time.zone`.
To keep the old behavior, you must add the following to your initializer:
    config.active_record.time_zone_aware_types = [:datetime]
To silence this deprecation warning, add the following:
    config.active_record.time_zone_aware_types = [:datetime, :time]
 (called from quarterly_message_not_already_sent? at /home/travis/build/18F/dolores-landingham-slack-bot/app/services/quarterly_message_employee_matcher.rb:35)
.DEPRECATION WARNING: ActionController::TestCase HTTP request methods will accept only
keyword arguments in future Rails versions.
Examples:
get :show, params: { id: 1 }, session: { user_id: 1 }
process :update, method: :post, params: { id: 1 }
 (called from block (3 levels) in <top (required)> at /home/travis/build/18F/dolores-landingham-slack-bot/spec/controllers/send_messages_controller_spec.rb:9)
DEPRECATION WARNING: ActionController::TestCase HTTP request methods will accept only
keyword arguments in future Rails versions.
Examples:
get :show, params: { id: 1 }, session: { user_id: 1 }
process :update, method: :post, params: { id: 1 }
 (called from block (3 levels) in <top (required)> at /home/travis/build/18F/dolores-landingham-slack-bot/spec/controllers/send_messages_controller_spec.rb:9)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant