changeset 4204:a5930a185806

mod_s2s_keepalive: Fix name of timestamp function
author Kim Alvefur <zash@zash.se>
date Wed, 14 Oct 2020 18:15:12 +0200
parents c4002aae4ad3
children 481c4d75e77d
files mod_s2s_keepalive/mod_s2s_keepalive.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_s2s_keepalive/mod_s2s_keepalive.lua	Wed Oct 14 18:02:10 2020 +0200
+++ b/mod_s2s_keepalive/mod_s2s_keepalive.lua	Wed Oct 14 18:15:12 2020 +0200
@@ -15,7 +15,7 @@
 	for remote_domain, session in pairs(s2sout) do
 		if session.type ~= "s2sout_unauthed"
 		and (not(keepalive_servers) or keepalive_servers:contains(remote_domain)) then
-			session.sends2s(st.iq({ to = remote_domain, type = "get", from = host, id = "keepalive:"..dt.timestamp()})
+			session.sends2s(st.iq({ to = remote_domain, type = "get", from = host, id = "keepalive:"..dt.datetime()})
 				:tag("ping", { xmlns = "urn:xmpp:ping" })
 			);
 		end
@@ -33,7 +33,7 @@
 
 	-- ping remotes we only have s2sin from
 	for remote_domain in pairs(ping_hosts) do
-		module:send(st.iq({ to = remote_domain, type = "get", from = host, id = "keepalive:"..dt.timestamp() })
+		module:send(st.iq({ to = remote_domain, type = "get", from = host, id = "keepalive:"..dt.datetime() })
 			:tag("ping", { xmlns = "urn:xmpp:ping" })
 		);
 	end