diff options
Diffstat (limited to 'plugins/mod_time.lua')
-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);
|