From e8c0e21f71f890e109232f5252184d40ef1c2ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Fri, 24 Feb 2017 12:08:45 +0100 Subject: [PATCH] We don't like now() --- src/mod_admin_extra.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 50f651ec3..680184e3c 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -1344,12 +1344,12 @@ get_last(User, Server) -> [] -> case mod_last:get_last_info(User, Server) of not_found -> - {now(), "NOT FOUND"}; + {p1_time_compat:timestamp(), "NOT FOUND"}; {ok, Shift, Status1} -> {{Shift div 1000000, Shift rem 1000000, 0}, Status1} end; _ -> - {now(), "ONLINE"} + {p1_time_compat:timestamp(), "ONLINE"} end, {xmpp_util:encode_timestamp(Now), Status}.