From e5be0afbab8477a8fb15321fc4fb036588a7b413 Mon Sep 17 00:00:00 2001 From: Kieran Date: Fri, 9 Sep 2022 11:11:41 +0100 Subject: [PATCH] Revert changes --- events/guildScheduledEvent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events/guildScheduledEvent.js b/events/guildScheduledEvent.js index c941db0..f1df27c 100644 --- a/events/guildScheduledEvent.js +++ b/events/guildScheduledEvent.js @@ -21,10 +21,10 @@ client.on('guildScheduledEventCreate', async guildScheduledEvent =>{ embed.addField('Location', `External - ${guildScheduledEvent.entityMetadata.location}`) } - embed.addField('Start Date and Time', `${guildScheduledEvent.scheduledStartAt ? time(guildScheduledEvent.scheduledStartAt, "F") : "Unknown"}`, true) + embed.addField('Start Date and Time', `${guildScheduledEvent.scheduledStartAt.toLocaleString('en-UK', { timeZone: "Europe/London" })}`, true) if(guildScheduledEvent.scheduledEndAt !== null) { - embed.addField('End Date and Time', `${guildScheduledEvent.scheduledEndAt ? time(guildScheduledEvent.scheduledEndAt, "F") : "Unknown"}`, true) + embed.addField('End Date and Time', `${guildScheduledEvent.scheduledStartAt.toLocaleString('en-UK', { timeZone: "Europe/London" })}`, true) } embed.addField('InviteURL', `${guildScheduledEvent.url}`)