From df430f3c4f35c95a0306d652db053212a2a01401 Mon Sep 17 00:00:00 2001 From: ctcpip Date: Thu, 7 Aug 2025 12:54:24 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20time=20converter=20link?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/meeting.md | 2 +- README.md | 2 +- lib/default-template.js | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/meeting.md b/.github/ISSUE_TEMPLATE/meeting.md index a921bfa..3b0669d 100644 --- a/.github/ISSUE_TEMPLATE/meeting.md +++ b/.github/ISSUE_TEMPLATE/meeting.md @@ -34,7 +34,7 @@ Or in your local time: -* https://www.timeanddate.com/worldclock/?iso=<%= date.toZonedDateTimeISO('UTC').toPlainDateTime().toString() %> +* https://www.timeanddate.com/worldclock/fixedtime.html?msg=<%= encodeURIComponent(title) %>&iso=<%= date.toZonedDateTimeISO('UTC').toPlainDateTime().toString().slice(0, 16).replace(/[-:]/g, '') %>&p1=1440&ah=1 ## Agenda diff --git a/README.md b/README.md index 42d3c6f..a285aa2 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,7 @@ When using EJS templates for your meeting issues, the following data properties Or in your local time: -* https://www.timeanddate.com/worldclock/?iso=<%= date.toZonedDateTimeISO('UTC').toPlainDateTime().toString() %> +* https://www.timeanddate.com/worldclock/fixedtime.html?msg=<%= encodeURIComponent(title) %>&iso=<%= date.toZonedDateTimeISO('UTC').toPlainDateTime().toString().slice(0, 16).replace(/[-:]/g, '') %>&p1=1440&ah=1 ## Agenda diff --git a/lib/default-template.js b/lib/default-template.js index d2afe41..bd18fec 100644 --- a/lib/default-template.js +++ b/lib/default-template.js @@ -1,6 +1,6 @@ 'use strict' -module.exports = ({ date, agendaIssues, agendaLabel, meetingNotes, owner, repo, meetingLink }) => { +module.exports = ({ date, agendaIssues, agendaLabel, meetingNotes, owner, repo, meetingLink, title }) => { const timezones = [ 'America/Los_Angeles', 'America/Denver', @@ -37,7 +37,8 @@ ${timezones.map((zone) => { }).join('\n')} Or in your local time: -* https://www.timeanddate.com/worldclock/?iso=${date.toZonedDateTimeISO('UTC').toPlainDateTime().toString()} + +* https://www.timeanddate.com/worldclock/fixedtime.html?msg=${encodeURIComponent(title)}&iso=${date.toZonedDateTimeISO('UTC').toPlainDateTime().toString().slice(0, 16).replace(/[-:]/g, '')}&p1=1440&ah=1 ## Agenda