Skip to content

Commit a51eb35

Browse files
ctcpipwesleytodd
andauthored
fix: 🐛 fix time converter link (#239)
Co-authored-by: Wes Todd <[email protected]>
1 parent 1eee303 commit a51eb35

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/ISSUE_TEMPLATE/meeting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
Or in your local time:
3636

37-
* https://www.timeanddate.com/worldclock/?iso=<%= date.toZonedDateTimeISO('UTC').toPlainDateTime().toString() %>
37+
* 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
3838

3939
## Agenda
4040

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ When using EJS templates for your meeting issues, the following data properties
169169
170170
Or in your local time:
171171
172-
* https://www.timeanddate.com/worldclock/?iso=<%= date.toZonedDateTimeISO('UTC').toPlainDateTime().toString() %>
172+
* 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
173173
174174
## Agenda
175175

lib/default-template.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
module.exports = ({ date, agendaIssues, agendaLabel, meetingNotes, owner, repo, meetingLink }) => {
3+
module.exports = ({ date, agendaIssues, agendaLabel, meetingNotes, owner, repo, meetingLink, title }) => {
44
const timezones = [
55
'America/Los_Angeles',
66
'America/Denver',
@@ -37,7 +37,8 @@ ${timezones.map((zone) => {
3737
}).join('\n')}
3838
3939
Or in your local time:
40-
* https://www.timeanddate.com/worldclock/?iso=${date.toZonedDateTimeISO('UTC').toPlainDateTime().toString()}
40+
41+
* 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
4142
4243
## Agenda
4344

0 commit comments

Comments
 (0)