Merge pull request #7119 from Matt-Yorkley/flaky-timezones

Allow timezone from ENV vars, but use UTC as default
This commit is contained in:
Pau Pérez Fabregat
2021-03-15 17:53:15 +01:00
committed by GitHub

View File

@@ -31,7 +31,7 @@ Openfoodnetwork::Application.configure do
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
config.time_zone = "UTC"
config.time_zone = ENV.fetch("TIMEZONE", "UTC")
# Tests assume English text on the site.
config.i18n.default_locale = "en"