Allow timezone from ENV vars, but use UTC as default

This commit is contained in:
Matt-Yorkley
2021-03-15 14:55:22 +00:00
parent 162ae4ff24
commit 4d7029f0c9

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"