From 4d7029f0c9c5d4eefca82d67cc7d2b1de706383b Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Mon, 15 Mar 2021 14:55:22 +0000 Subject: [PATCH] Allow timezone from ENV vars, but use UTC as default --- config/environments/test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/test.rb b/config/environments/test.rb index dc2ed580f9..665525bb13 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -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"