From e4ccaf369a43b6202b2ff8b3c90de2360c0f5dc3 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 10 Mar 2019 22:09:22 +0000 Subject: [PATCH] Fix error thrown by moment --- commands/search/soundcloud.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/soundcloud.js b/commands/search/soundcloud.js index 733ad358..092b0145 100644 --- a/commands/search/soundcloud.js +++ b/commands/search/soundcloud.js @@ -42,7 +42,7 @@ module.exports = class SoundcloudCommand extends Command { .setTitle(data.title) .setDescription(data.description ? shorten(data.description) : 'No description available.') .addField('❯ Artist', `[${data.user.username}](${data.user.permalink_url})`, true) - .addField('❯ Release Date', moment.utc(data.created_at).format('MM/DD/YYYY'), true) + .addField('❯ Release Date', moment.utc(new Date(data.created_at)).format('MM/DD/YYYY'), true) .addField('❯ Genre', data.genre, true) .addField('❯ Likes', formatNumber(data.likes_count), true); return msg.embed(embed);