From c3404c96e21bdacc09a33912d547b23c7e3119ae Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 26 Nov 2008 09:02:58 +0500 Subject: Changed format for XEP-0090 to the legacy format --- plugins/mod_time.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/mod_time.lua') diff --git a/plugins/mod_time.lua b/plugins/mod_time.lua index b91d7b43..bf079692 100644 --- a/plugins/mod_time.lua +++ b/plugins/mod_time.lua @@ -1,6 +1,7 @@ local st = require "util.stanza"; local datetime = require "util.datetime".datetime; +local legacy = require "util.datetime".legacy; -- XEP-0202: Entity Time @@ -23,6 +24,6 @@ add_iq_handler({"c2s", "s2sin"}, "jabber:iq:time", function(session, stanza) if stanza.attr.type == "get" then session.send(st.reply(stanza):tag("query", {xmlns="jabber:iq:time"}) - :tag("utc"):text(datetime())); + :tag("utc"):text(legacy())); end end); -- cgit v1.2.3