From 7e714b64695b300f0f43fba1457ab6087b997d8b Mon Sep 17 00:00:00 2001 From: realjunderwood <75750795+realjunderwood@users.noreply.github.com> Date: Wed, 20 Sep 2023 00:04:04 -0400 Subject: [PATCH] Update addtocalendar.html --- addtocalendar.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/addtocalendar.html b/addtocalendar.html index 64622f0..dcb1f92 100644 --- a/addtocalendar.html +++ b/addtocalendar.html @@ -13,6 +13,18 @@ datsplit = dat.split(" - "); left = datsplit[0].split(", ")[1].replace(" @","/2023") + + + + const event = new Date(left); + console.log(event.toString()); +// Expected output: "Wed Oct 05 2011 16:48:00 GMT+0200 (CEST)" +// Note: your timezone may vary + +console.log(event.toISOString()); + + + document.getElementById('addToCalendarButton').addEventListener('click', function() { // Generate the .ics content dynamically (replace with your data)