]> granicus.if.org Git - ejabberd/commitdiff
We don't like now()
authorPaweł Chmielowski <pchmielowski@process-one.net>
Fri, 24 Feb 2017 11:08:45 +0000 (12:08 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Fri, 24 Feb 2017 11:08:57 +0000 (12:08 +0100)
src/mod_admin_extra.erl

index 50f651ec342a4b730283a8e194a65c671ac88c29..680184e3c57caabb10e5e9035e2cc9a84a898957 100644 (file)
@@ -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}.