We don't like now()

This commit is contained in:
Paweł Chmielowski 2017-02-24 12:08:45 +01:00
parent a85a953e8e
commit e8c0e21f71
1 changed files with 2 additions and 2 deletions

View File

@ -1344,12 +1344,12 @@ get_last(User, Server) ->
[] -> [] ->
case mod_last:get_last_info(User, Server) of case mod_last:get_last_info(User, Server) of
not_found -> not_found ->
{now(), "NOT FOUND"}; {p1_time_compat:timestamp(), "NOT FOUND"};
{ok, Shift, Status1} -> {ok, Shift, Status1} ->
{{Shift div 1000000, Shift rem 1000000, 0}, Status1} {{Shift div 1000000, Shift rem 1000000, 0}, Status1}
end; end;
_ -> _ ->
{now(), "ONLINE"} {p1_time_compat:timestamp(), "ONLINE"}
end, end,
{xmpp_util:encode_timestamp(Now), Status}. {xmpp_util:encode_timestamp(Now), Status}.