Diff

mod_http_muc_log/mod_http_muc_log.lua @ 1671:c813b69ae279

mod_http_muc_log: Fix passing dates trough util.datetime twice;
author Kim Alvefur <zash@zash.se>
date Sat, 11 Apr 2015 21:43:32 +0200
parent 1654:1a6d6221c5f6
child 1750:3b839db88412
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua	Thu Apr 09 14:23:48 2015 +0200
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Sat Apr 11 21:43:32 2015 +0200
@@ -238,7 +238,7 @@
 	local next_when = find_once(room, { after = last }, 3);
 	if next_when then
 		next_when = datetime.date(next_when);
-		module:log("debug", "Next message: %s", datetime.datetime(next_when));
+		module:log("debug", "Next message: %s", next_when);
 	else
 		next_when = "";
 	end
@@ -247,7 +247,7 @@
 	local prev_when = find_once(room, { before = first, reverse = true }, 3);
 	if prev_when then
 		prev_when = datetime.date(prev_when);
-		module:log("debug", "Previous message: %s", datetime.datetime(prev_when));
+		module:log("debug", "Previous message: %s", prev_when);
 	else
 		prev_when = "";
 	end