diff --git a/commands/time.js b/commands/time.js index 92c78b1..4ad0dc1 100644 --- a/commands/time.js +++ b/commands/time.js @@ -14,7 +14,7 @@ module.exports = { if (timezone.toLowerCase()==='asia/bangkok' || timezone.toLowerCase()==='utc') { bot.core.run(command); return; - } else if (momented===moment().format('dddd, MMMM Do, YYYY, h:mm:ss A')) { + } else if (momented===moment().format('dddd, MMMM Do, YYYY, hh:mm:ss A')) { throw new SyntaxError('Invalid timezone'); } else { bot.core.run(command); @@ -31,7 +31,7 @@ module.exports = { .setDescription(description); channeldc.send({embeds: [Embed]}); return; - } else if (momented===moment().format('dddd, MMMM Do, YYYY, h:mm:ss A')) { + } else if (momented===moment().format('dddd, MMMM Do, YYYY, hh:mm:ss A')) { throw new SyntaxError('Invalid timezone'); } else { const Embed = new MessageEmbed()