Skip to content

Commit 2fcb7de

Browse files
updated for copilot comments
1 parent b4d72e7 commit 2fcb7de

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

website/src/pages/webinars.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Maintenance overview:
22
// Agenda content and its month label are sourced exclusively from markdown files:
33
// Community Calls: /website/static/webinars/agenda/YYYY-MM.md (monthly files)
4-
// Architecture Review Hour: /website/static/webinars/agenda/architecture-review.md (single file, updated in-place)
4+
// Architecture Review Hour: /website/static/webinars/agenda/kube-and-tell.md (single file, updated in-place)
55
// Frontmatter must include: month: Month YYYY (or a label for the session)
66
// Each agenda section uses a second-level heading (##) followed by optional lines:
77
// Presenter: Name and title
@@ -76,9 +76,9 @@ const eventTypes: EventType[] = [
7676
"8 AM Pacific / 11 AM Eastern / 4 PM GMT / 8:30 PM IST",
7777
icsHref: "/webinars/calendar/Kube & Tell _ Real Clusters, Real Conversations.ics",
7878
joinHref: "https://aka.ms/aks/kubeandtell/joinnow",
79-
agendaBasePath: "/webinars/agenda/architecture-review.md",
79+
agendaBasePath: "/webinars/agenda/kube-and-tell.md",
8080
agendaMode: "static",
81-
getNextDate: getNextArchitectureReviewDate,
81+
getNextDate: getNextKubeAndTellDate,
8282
},
8383
];
8484

@@ -114,16 +114,16 @@ function getNextThirdWednesday(): Date {
114114

115115
// Returns the next Architecture Review Hour date.
116116
// Known upcoming dates: June 11, 2026. After that, assume 2nd Thursday monthly.
117-
function getNextArchitectureReviewDate(): Date {
117+
function getNextKubeAndTellDate(): Date {
118118
const PST_OFFSET_MS = 8 * 60 * 60 * 1000;
119119
const nowUTC = Date.now();
120120
const nowPST = new Date(nowUTC - PST_OFFSET_MS);
121121
const todayMs = Date.UTC(nowPST.getUTCFullYear(), nowPST.getUTCMonth(), nowPST.getUTCDate());
122122

123123
// Known fixed date
124-
const knownDate = new Date(2026, 5, 11); // June 11, 2026
125-
if (knownDate.getTime() >= todayMs) {
126-
return knownDate;
124+
const knownMs = Date.UTC(2026, 5, 11); // June 11, 2026
125+
if (knownMs >= todayMs) {
126+
return new Date(2026, 5, 11);
127127
}
128128

129129
// Fallback: 2nd Thursday of each month
File renamed without changes.

0 commit comments

Comments
 (0)