mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
More formatting changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user