Diff

mod_http_muc_log/mod_http_muc_log.lua @ 1556:0b80a02c2e3d

mod_http_muc_log: Search for next date with messages from 00:00:00, not 00:00:01
author Kim Alvefur <zash@zash.se>
date Sun, 09 Nov 2014 08:40:05 +0100
parent 1555:2e51f70cd7ea
child 1557:876af57a3983
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua	Sun Nov 09 08:38:57 2014 +0100
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Sun Nov 09 08:40:05 2014 +0100
@@ -270,7 +270,7 @@
 
 	module:log("debug", "Find next date with messages");
 	for key, message, when in archive:find(room, {
-		["start"] = datetime.parse(date.."T00:00:00Z") + 86401;
+		["start"] = datetime.parse(date.."T00:00:00Z") + 86400;
 		limit = math.huge;
 	}) do
 		next_when = when;