aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-05-15 21:26:54 +0200
committerKim Alvefur <zash@zash.se>2020-05-15 21:26:54 +0200
commitbc0850b210819e1adae5872a4ce7717b24fa6353 (patch)
tree9da1364fef20e514e3b3fb2b794abd24fe9919f1
parent35836fec719c62b65ba73039552180c3085e0e80 (diff)
parentda56029ea19bc281362d1779db8e95306c988061 (diff)
downloadprosody-bc0850b210819e1adae5872a4ce7717b24fa6353.tar.gz
prosody-bc0850b210819e1adae5872a4ce7717b24fa6353.zip
Merge 0.11->trunk
-rw-r--r--plugins/mod_storage_internal.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua
index 472ec642..3998165b 100644
--- a/plugins/mod_storage_internal.lua
+++ b/plugins/mod_storage_internal.lua
@@ -150,12 +150,14 @@ function archive:find(username, query)
end
if query.start then
items:filter(function (item)
- return item.when >= query.start;
+ local when = item.when or datetime.parse(item.attr.stamp);
+ return when >= query.start;
end);
end
if query["end"] then
items:filter(function (item)
- return item.when <= query["end"];
+ local when = item.when or datetime.parse(item.attr.stamp);
+ return when <= query["end"];
end);
end
if query.total then