diff --git a/commands/events/holidays.js b/commands/events/holidays.js index 5efc086d..a64bd3d5 100644 --- a/commands/events/holidays.js +++ b/commands/events/holidays.js @@ -38,6 +38,7 @@ module.exports = class HolidaysCommand extends Command { singleEvents: true, timeMax: tomorrow().toISOString(), timeMin: today().toISOString(), + timeZone: 'UTC', key: GOOGLE_KEY }); if (!body.items.length) return null; diff --git a/commands/events/time.js b/commands/events/time.js index 5ced2b4b..a8096ec3 100644 --- a/commands/events/time.js +++ b/commands/events/time.js @@ -22,10 +22,14 @@ module.exports = class TimeCommand extends Command { } run(msg, { timeZone }) { - if (timeZone === 'NEOPIA/STANDARD') timeZone = 'AMERICA/VANCOUVER'; + let neopia = false; + if (timeZone === 'NEOPIA/STANDARD' || timeZone === 'NEOPIA') { + timeZone = 'AMERICA/VANCOUVER'; + neopia = true; + } try { const time = new Date().toLocaleTimeString('en-US', { timeZone }); - return msg.say(`The current time in ${timeZone} is ${time}.`); + return msg.say(`The current time in ${neopia ? 'NEOPIA' : timeZone} is ${time}.`); } catch (err) { return msg.reply('Invalid time zone. Refer to .'); } diff --git a/package.json b/package.json index d747db60..9653ddb3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "81.0.5", + "version": "81.0.6", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {