# HG changeset patch # User Kim Alvefur # Date 1589570814 -7200 # Node ID 05f4386c846ef5eb1d19734860621d07af8c9462 # Parent 5a6ba2f38e2ba8c4e290818923f306d4b508398c# Parent 8fcd46ee9bf5084da6f11c343985611823911dcb Merge 0.11->trunk diff -r 5a6ba2f38e2b -r 05f4386c846e plugins/mod_storage_internal.lua --- 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