# HG changeset patch # User Kim Alvefur # Date 1377710460 -7200 # Node ID 06e0c279f6a8e546765073643082ee16922665c1 # Parent 9eac4e2386d272311e078bc3cb255cfa891a1956 mod_lastlog: Import util.datetime diff -r 9eac4e2386d2 -r 06e0c279f6a8 mod_lastlog/mod_lastlog.lua --- a/mod_lastlog/mod_lastlog.lua Wed Aug 28 19:19:58 2013 +0200 +++ b/mod_lastlog/mod_lastlog.lua Wed Aug 28 19:21:00 2013 +0200 @@ -48,6 +48,7 @@ end); elseif module:get_option_boolean("lastlog_stamp_offline") then + local datetime = require"util.datetime".datetime; local function offline_stamp(event) local stanza = event.stanza; local node, to_host = jid.split(stanza.attr.from); @@ -58,7 +59,7 @@ stanza:tag("delay", { xmlns = "urn:xmpp:delay", from = host, - stamp = datetime.datetime(timestamp), + stamp = datetime(timestamp), }):up(); end end