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 <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-11-14 19:07:19 +01:00
parent d8323c8e5c
commit dbdb2bcdab
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 1 additions and 1 deletions

View File

@ -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