date formatting

This commit is contained in:
reality 2015-01-19 22:12:05 +00:00
parent 0e47ce22ce
commit 84e7b5f06e

View File

@ -114,7 +114,7 @@ var commands = function(dbot) {
event.reply(user.primaryNick + ' has been warned ' + warn + ' times, quieted ' + quiet + ' times, and reported ' + report + ' times.'); event.reply(user.primaryNick + ' has been warned ' + warn + ' times, quieted ' + quiet + ' times, and reported ' + report + ' times.');
_.each(_.keys(items).sort(), function(time) { _.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) { if(ban) {