Software /
code /
prosody
Changeset
424:3eb22492e8ab
Changed format for XEP-0090 to the legacy format
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 26 Nov 2008 09:02:58 +0500 |
parents | 423:c9c7f026a108 |
children | 425:f3b65866192e |
files | plugins/mod_time.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_time.lua Wed Nov 26 08:56:30 2008 +0500 +++ b/plugins/mod_time.lua Wed Nov 26 09:02:58 2008 +0500 @@ -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 @@ 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);