diff options
-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 0cd5a4ea..72421f85 100644 --- a/plugins/mod_time.lua +++ b/plugins/mod_time.lua @@ -8,6 +8,7 @@ local st = require "util.stanza"; local datetime = require "util.datetime".datetime; +local now = require "util.time".now; local legacy = require "util.datetime".legacy; -- XEP-0202: Entity Time @@ -18,7 +19,7 @@ local function time_handler(event) local origin, stanza = event.origin, event.stanza; origin.send(st.reply(stanza):tag("time", {xmlns="urn:xmpp:time"}) :tag("tzo"):text("+00:00"):up() -- TODO get the timezone in a platform independent fashion - :tag("utc"):text(datetime())); + :tag("utc"):text(datetime(now()))); return true; end |