mirror of
https://github.com/fleetdm/fleet
synced 2026-05-19 06:58:30 +00:00
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:
parent
ad7d6d122b
commit
43cbf8d7ff
1 changed files with 2 additions and 2 deletions
|
|
@ -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', {
|
||||
|
|
|
|||
Loading…
Reference in a new issue