You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of setting config.time_zone in application.rb (which works properly), create an initializer and set the timezone there with: Rails.application.config.time_zone = 'Brasilia'.
This works with other configurations, such as Rails.application.config.active_job.queue_adapter = :delayed_job, so it probably should work for setting the timezone too.
Expected behavior
When running Rails.application.config.time_zone the configured timezone is shown, and everything, including Time.zone, must be in the configured timezone.
Actual behavior
When running Rails.application.config.time_zone the configured timezone is shown, but everything, including Time.zone, is still UTC.
System configuration
Rails version:
master at f03c27c (Rails 5.0.0.beta3)