Fix date formatting in log lists

master
Miikka Virtanen 2016-12-30 17:53:53 +02:00
parent 04f82fcc5f
commit e12996f4b7
1 changed files with 2 additions and 2 deletions

View File

@ -499,8 +499,8 @@ bot.registerCommand('logs', (msg, args) => {
let message = `**Log files for <@${userId}>:**\n`;
message += infos.map(info => {
const formattedDate = moment.utc(info.date, 'YYYY-MM-DD HH:mm:ss').format('MMM Mo [at] HH:mm [UTC]');
return `${formattedDate}: <${info.url}>`;
const formattedDate = moment.utc(info.date, 'YYYY-MM-DD HH:mm:ss').format('MMM Do [at] HH:mm [UTC]');
return `\`${formattedDate}\`: <${info.url}>`;
}).join('\n');
msg.channel.createMessage(message);