Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read time_zone.name instead of time_zone #2250

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Read time_zone.name instead of time_zone
  • Loading branch information
pravi committed Feb 18, 2024
commit df267dcf9f6fa26aa522861a9c35a1caf32889c3
4 changes: 2 additions & 2 deletions sentry-rails/lib/sentry/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def configure_trusted_proxies
end

def configure_cron_timezone
tz_info = ::ActiveSupport::TimeZone.find_tzinfo(::Rails.application.config.time_zone)
Sentry.configuration.cron.default_timezone = tz_info.name
tz_info = ::ActiveSupport::TimeZone.find_tzinfo(::Rails.application.config.time_zone.name)
Sentry.configuration.cron.default_timezone = tz_info
end

def extend_controller_methods
Expand Down