]> granicus.if.org Git - ejabberd/commitdiff
Remove now() from mod_offline.hrl
authorPaweł Chmielowski <pchmielowski@process-one.net>
Tue, 22 Nov 2016 12:15:16 +0000 (13:15 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Tue, 22 Nov 2016 12:15:43 +0000 (13:15 +0100)
include/mod_offline.hrl

index c4c70604a7e8c3d1ffc68ec1090f4fa9290231b8..cc644c4c20973aac033a48dcdedae702586270ca 100644 (file)
@@ -1,7 +1,7 @@
 -record(offline_msg,
        {us = {<<"">>, <<"">>} :: {binary(), binary()},
-        timestamp = now()     :: erlang:timestamp() | '_',
-        expire = now()        :: erlang:timestamp() | never | '_',
+        timestamp = p1_time_compat:timestamp() :: erlang:timestamp() | '_',
+        expire = p1_time_compat:timestamp() :: erlang:timestamp() | never | '_',
         from = #jid{}         :: jid() | '_',
         to = #jid{}           :: jid() | '_',
         packet = #xmlel{}     :: xmlel() | '_'}).