--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Tue Mar 21 11:17:17 2017 +0100
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Tue Mar 21 11:17:46 2017 +0100
@@ -196,7 +196,9 @@
module:log("warn", "data[%q][%d] is nil", date, i);
break;
end
+
local i_when, i_with = item.when, item.with;
+
if type(i_when) == "string" then
i_when = dt.parse(i_when);
end
@@ -204,6 +206,7 @@
module:log("warn", "data[%q][%d].when is invalid", date, i);
break;
end
+
if (not q_with or i_with == q_with)
and (not q_start or i_when >= q_start)
and (not q_end or i_when <= q_end) then