mod_http_muc_log: Fix passing dates trough util.datetime twice;
authorKim Alvefur <zash@zash.se>
Sat, 11 Apr 2015 21:43:32 +0200
changeset 1675 c813b69ae279
parent 1674 5f5ff061b316
child 1676 d9fcf9d8e787
mod_http_muc_log: Fix passing dates trough util.datetime twice;
mod_http_muc_log/mod_http_muc_log.lua
--- 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