Software /
code /
prosody
Diff
plugins/mod_storage_internal.lua @ 10844:05f4386c846e
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 15 May 2020 21:26:54 +0200 |
parent | 10842:5a6ba2f38e2b |
parent | 10843:8fcd46ee9bf5 |
child | 10926:c55bd98a54f8 |
line wrap: on
line diff
--- a/plugins/mod_storage_internal.lua Fri May 15 20:55:22 2020 +0200 +++ b/plugins/mod_storage_internal.lua Fri May 15 21:26:54 2020 +0200 @@ -150,12 +150,14 @@ 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