From 622233eaf673ae400c4a43a280470e2e14e6b225 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 6 Jul 2021 21:37:42 +0200 Subject: [PATCH] erlang:now() is deprecated, replace with erlang:timestamp() --- mod_logxml/src/mod_logxml.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_logxml/src/mod_logxml.erl b/mod_logxml/src/mod_logxml.erl index 3588401..5fa2694 100644 --- a/mod_logxml/src/mod_logxml.erl +++ b/mod_logxml/src/mod_logxml.erl @@ -264,7 +264,7 @@ make_dir_rec(Dir) -> get_gregorian_day() -> calendar:date_to_gregorian_days(date()). get_now_iso() -> - xmpp_util:encode_timestamp(now()). + xmpp_util:encode_timestamp(erlang:timestamp()). calc_div(A, B) when is_integer(A) and is_integer(B) and (B /= 0) -> A/B;