Website: fix event times on GitOps workshops page (#39067)

Changes:
- Updated the view action for the /gitops-workshop page to use UTC
timestamps when building the event details for that page.
This commit is contained in:
Eric 2026-01-30 10:15:06 -06:00 committed by GitHub
parent ad7d6d122b
commit 43cbf8d7ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,8 +50,8 @@ module.exports = {
// Convert the ISO timestamps that represent the start and end time of the event into a formatted string.
// Create new Date objects from the start and end times.
let eventStartsOn = new Date(event.start.local);
let eventEndsOn = new Date(event.end.local);
let eventStartsOn = new Date(event.start.utc);
let eventEndsOn = new Date(event.end.utc);
let eventTimeZone = event.start.timezone;
let formattedDateString = new Intl.DateTimeFormat('en-US', {