Software /
code /
prosody
Diff
plugins/mod_time.lua @ 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 |
parent | 423:c9c7f026a108 |
child | 438:193f9dd64f17 |
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);