--- a/plugins/archive.lua Fri May 01 21:46:24 2015 +0200 +++ b/plugins/archive.lua Fri May 01 23:27:29 2015 +0200 @@ -27,7 +27,7 @@ local query_st = st.iq{ type="set", to = where } :tag("query", { xmlns = xmlns_mam, queryid = queryid }); - + local qstart, qend = tonumber(query_params["start"]), tonumber(query_params["end"]); query_params["start"] = qstart and datetime(qstart); query_params["end"] = qend and datetime(qend);