Fix date formatting in log lists
parent
04f82fcc5f
commit
e12996f4b7
4
index.js
4
index.js
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue