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:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user