diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-11-26 09:02:58 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-11-26 09:02:58 +0500 |
commit | c3404c96e21bdacc09a33912d547b23c7e3119ae (patch) | |
tree | 0bcb900ce0d2a0871f462c70f774834953375282 | |
parent | 5eafb3d324dc2aad0c35e8d7e8ded647175b2e90 (diff) | |
download | prosody-c3404c96e21bdacc09a33912d547b23c7e3119ae.tar.gz prosody-c3404c96e21bdacc09a33912d547b23c7e3119ae.zip |
Changed format for XEP-0090 to the legacy format
-rw-r--r-- | plugins/mod_time.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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);
|