More formatting changes

This commit is contained in:
Daniel Odendahl Jr
2018-09-20 20:07:03 +00:00
parent d4abebd338
commit 73ed8536ca
15 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ module.exports = class TimeCommand extends Command {
if (!moment.tz.zone(timeZone)) {
return msg.reply('Invalid time zone. Refer to <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones>.');
}
const time = moment().tz(timeZone).format('hh:mm:ss A');
const time = moment().tz(timeZone).format('h:mm:ss A');
const location = timeZone.split('/');
const main = firstUpperCase(location[0], /[_ ]/);
const sub = location[1] ? firstUpperCase(location[1], /[_ ]/) : null;