changeset 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
parents 5f5ff061b316
children d9fcf9d8e787
files mod_http_muc_log/mod_http_muc_log.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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