Skip to content

Commit

Permalink
Update addtocalendar.html
Browse files Browse the repository at this point in the history
  • Loading branch information
realjunderwood authored Sep 20, 2023
1 parent 8a8320f commit 7e714b6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions addtocalendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e714b6

Please sign in to comment.