From dbdb2bcdab2e59693b7fb89a3cef3d03f7708697 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 14 Nov 2020 19:07:19 +0100 Subject: [PATCH] Use DateTime.utc_now/0 instead of Timex.local/0 Timex.local/0 requires the TZ environment variable to be set Signed-off-by: Thomas Citharel --- lib/web/email/email.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/email/email.ex b/lib/web/email/email.ex index 24ab60fe..ac5a31e4 100644 --- a/lib/web/email/email.ex +++ b/lib/web/email/email.ex @@ -37,7 +37,7 @@ defmodule Mobilizon.Web.Email do if Application.fetch_env!(:mobilizon, :env) == :test do "REMOVED FOR TESTING" else - Timex.format!(Timex.local(), "{WDshort}, {D} {Mshort} {YYYY} {h24}:{m}:{s} {Z}") + Timex.format!(DateTime.utc_now(), "{WDshort}, {D} {Mshort} {YYYY} {h24}:{m}:{s} {Z}") end end end