Skip to content

Commit 458778c

Browse files
authored
Merge pull request #29 from bjohansebas/meeting
2 parents 0c9d2ed + e173be5 commit 458778c

File tree

2 files changed

+33
-18
lines changed

2 files changed

+33
-18
lines changed

.github/ISSUE_TEMPLATE/meeting-agenda.md

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
## Date/Time
2-
3-
| Timezone | Date/Time |
4-
|----------|-----------|
5-
<%= [
1+
<% const timezones = [
62
'America/Los_Angeles',
73
'America/Denver',
84
'America/Chicago',
@@ -14,12 +10,31 @@
1410
'Asia/Shanghai',
1511
'Asia/Tokyo',
1612
'Australia/Sydney'
17-
].map((zone) => {
18-
return `| ${zone} | ${date.setZone(zone).toFormat('EEE dd-MMM-yyyy HH:mm (hh:mm a)')} |`
13+
]; %>
14+
15+
## Date/Time
16+
17+
| Timezone | Date/Time |
18+
|----------|-----------|
19+
<%= timezones.map((zone) => {
20+
const zonedDate = date.toZonedDateTimeISO(zone)
21+
const formatter = new Intl.DateTimeFormat('en-US', {
22+
weekday: 'short',
23+
month: 'short',
24+
day: '2-digit',
25+
year: 'numeric',
26+
hour: '2-digit',
27+
minute: '2-digit',
28+
hour12: true,
29+
timeZone: zone
30+
})
31+
const formattedDate = formatter.format(new Date(zonedDate.epochMilliseconds))
32+
return `| ${zone} | ${formattedDate} |`
1933
}).join('\n') %>
2034

2135
Or in your local time:
22-
* https://www.timeanddate.com/worldclock/?iso=<%= date.toFormat("yyyy-MM-dd'T'HH:mm:ss") %>
36+
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
2338

2439
## Agenda
2540

@@ -31,7 +46,7 @@ Extracted from **<%= agendaLabel %>** labelled issues and pull requests from **<
3146

3247
## Invited
3348

34-
- Webpack TSC (@webpack/tsc)
49+
* Webpack TSC (@webpack/tsc)
3550

3651
### Observers/Guests
3752

@@ -46,6 +61,6 @@ This meeting is open for anyone who wants to attend. Reminder to follow our [Cod
4661
Please use the following emoji reactions in this post to indicate your
4762
availability.
4863

49-
- 👍 - Attending
50-
- 👎 - Not attending
51-
- 😕 - Not sure yet
64+
* 👍 - Attending
65+
* 👎 - Not attending
66+
* 😕 - Not sure yet

.github/workflows/generate-meeting-agendas.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Generate TSC Meeting Agenda
22

33
on:
44
pull_request:
5-
push:
6-
branches:
7-
- main
5+
paths:
6+
- '.github/workflows/generate-meeting-agendas.yml'
7+
- '.github/ISSUE_TEMPLATE/meeting-agenda.md'
88
schedule:
99
- cron: '0 0 * * *'
1010

@@ -18,13 +18,13 @@ jobs:
1818

1919
steps:
2020
- name: Webpack TSC Meeting Agenda
21-
uses: 'pkgjs/meet@v0'
21+
uses: 'pkgjs/meet@v1'
2222
with:
23-
issueTitle: 'TSC Meeting <%= date.toFormat("dd-MMMM-yyyy") %>'
23+
issueTitle: 'TSC Meeting <%= date.toZonedDateTimeISO("UTC").toPlainDate().toString() %>'
2424
token: ${{ secrets.GITHUB_TOKEN }}
2525
orgs: webpack,webpack-contrib
2626
agendaLabel: 'tsc-agenda'
2727
meetingLabels: 'meeting'
28-
schedules: '2025-05-05T16:00:00.0Z/P2W'
28+
schedules: '2025-05-05T11:00:00.0[America/Chicago]/P2W'
2929
createWithin: 'P7D'
3030
issueTemplate: 'meeting-agenda.md'

0 commit comments

Comments
 (0)