From 986adf192608996d1747b703876a9ce1a0039c16 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 21 May 2017 15:34:42 +0000 Subject: [PATCH] Better moment dates --- commands/search/github.js | 4 ++-- commands/search/wattpad.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/search/github.js b/commands/search/github.js index 65ba4057..1cad60bc 100644 --- a/commands/search/github.js +++ b/commands/search/github.js @@ -37,9 +37,9 @@ module.exports = class GithubCommand extends Command { .setDescription(body.description) .setThumbnail(body.owner.avatar_url) .addField('Creation Date', - moment(body.created_at).format('MMMM Do YYYY h:mm:ss A'), true) + moment(body.created_at).format('MMMM Do YYYY'), true) .addField('Last Updated On', - moment(body.created_at).format('MMMM Do YYYY h:mm:ss A'), true) + moment(body.created_at).format('MMMM Do YYYY'), true) .addField('Stargazers', body.stargazers_count, true) .addField('Watchers', diff --git a/commands/search/wattpad.js b/commands/search/wattpad.js index caa13cc6..4ea5a50c 100644 --- a/commands/search/wattpad.js +++ b/commands/search/wattpad.js @@ -42,10 +42,10 @@ module.exports = class WattpadCommand extends Command { .setTitle(body.stories[0].title) .setDescription(body.stories[0].description.substr(0, 2000)) .setThumbnail(body.stories[0].cover) + .addField('Created On', + moment(body.stories[0].createDate).format('MMMM Do YYYY'), true) .addField('Author', body.stories[0].user, true) - .addField('Created On', - moment(body.stories[0].createDate).format('MMMM Do YYYY h:mm:ss A'), true) .addField('Parts', body.stories[0].numParts, true) .addField('Reads',