diff --git a/index.js b/index.js index 6a1961d..67d3124 100644 --- a/index.js +++ b/index.js @@ -1232,16 +1232,13 @@ discord.on("interactionCreate", async (interaction) => { interaction.editReply({ content: "Failed to get outlook", ephemeral: true }); return; } - // get date and expires headers, convert them to Date objects - date = new Date(res.headers.get("date")); - expires = new Date(res.headers.get("expires")); - + // debug log toLocalString of timestamps + console.log(issued.toLocaleString()); // Returns image, send embed with image as attachment (we need to bypass discord cache) res.buffer().then(async (buffer) => { interaction.editReply({ embeds: [{ title: `${toTitleCase(type)} Outlook Day ${day + 1}`, - description: `Issued \nExpires `, image: { url: `attachment://${type}_${day}.png` },