mod_http_muc_log/mod_http_muc_log.lua
changeset 1675 c813b69ae279
parent 1658 1a6d6221c5f6
child 1754 3b839db88412
--- 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