From 84e7b5f06e400cd5b33c8fd4762d4e1ca342b144 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 19 Jan 2015 22:12:05 +0000 Subject: [PATCH] date formatting --- modules/report/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/report/commands.js b/modules/report/commands.js index 3f2b79c..f992281 100644 --- a/modules/report/commands.js +++ b/modules/report/commands.js @@ -114,7 +114,7 @@ var commands = function(dbot) { event.reply(user.primaryNick + ' has been warned ' + warn + ' times, quieted ' + quiet + ' times, and reported ' + report + ' times.'); _.each(_.keys(items).sort(), function(time) { - event.reply('[' + moment(new Date(time)).format('dd/mm/YYYY') + '] ' + items[time]); + event.reply('[' + moment(time).format('DD/MM/YYYY') + '] ' + items[time]); }); if(ban) {