Skip to content

Commit

Permalink
Explicitly set config.time_zone to UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
richardTowers committed Jul 16, 2024
1 parent 5a3bb57 commit 0d7e25b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ class Application < Rails::Application
config.assets.prefix = "/assets/travel-advice-publisher"

config.slimmer.use_cache = true
# config.time_zone = "Central Time (US & Canada)"

# Even though most GOV.UK apps use the London time_zone, travel-advice-publisher does want to
# present times in UTC (as it's an international audience), so we set that as the default time_zone
initializer "publishing_api.configure_timezone",
after: "govuk_app_config.configure_timezone",
before: "active_support.initialize_time_zone" do
config.time_zone = "UTC"
end

# config.eager_load_paths << Rails.root.join("extras")
end
end

0 comments on commit 0d7e25b

Please sign in to comment.