From e12996f4b7a1df4441bae7494d409534a99b44f8 Mon Sep 17 00:00:00 2001 From: Miikka Virtanen Date: Fri, 30 Dec 2016 17:53:53 +0200 Subject: [PATCH] Fix date formatting in log lists --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0429608..4e8df97 100644 --- a/index.js +++ b/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);