|
1 | 1 | // Maintenance overview: |
2 | 2 | // Agenda content and its month label are sourced exclusively from markdown files: |
3 | 3 | // 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) |
5 | 5 | // Frontmatter must include: month: Month YYYY (or a label for the session) |
6 | 6 | // Each agenda section uses a second-level heading (##) followed by optional lines: |
7 | 7 | // Presenter: Name and title |
@@ -76,9 +76,9 @@ const eventTypes: EventType[] = [ |
76 | 76 | "8 AM Pacific / 11 AM Eastern / 4 PM GMT / 8:30 PM IST", |
77 | 77 | icsHref: "/webinars/calendar/Kube & Tell _ Real Clusters, Real Conversations.ics", |
78 | 78 | joinHref: "https://aka.ms/aks/kubeandtell/joinnow", |
79 | | - agendaBasePath: "/webinars/agenda/architecture-review.md", |
| 79 | + agendaBasePath: "/webinars/agenda/kube-and-tell.md", |
80 | 80 | agendaMode: "static", |
81 | | - getNextDate: getNextArchitectureReviewDate, |
| 81 | + getNextDate: getNextKubeAndTellDate, |
82 | 82 | }, |
83 | 83 | ]; |
84 | 84 |
|
@@ -114,16 +114,16 @@ function getNextThirdWednesday(): Date { |
114 | 114 |
|
115 | 115 | // Returns the next Architecture Review Hour date. |
116 | 116 | // Known upcoming dates: June 11, 2026. After that, assume 2nd Thursday monthly. |
117 | | -function getNextArchitectureReviewDate(): Date { |
| 117 | +function getNextKubeAndTellDate(): Date { |
118 | 118 | const PST_OFFSET_MS = 8 * 60 * 60 * 1000; |
119 | 119 | const nowUTC = Date.now(); |
120 | 120 | const nowPST = new Date(nowUTC - PST_OFFSET_MS); |
121 | 121 | const todayMs = Date.UTC(nowPST.getUTCFullYear(), nowPST.getUTCMonth(), nowPST.getUTCDate()); |
122 | 122 |
|
123 | 123 | // 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); |
127 | 127 | } |
128 | 128 |
|
129 | 129 | // Fallback: 2nd Thursday of each month |
|
0 commit comments