From 325ab38fbb03f323d0a5738f2583219f8d7327ef Mon Sep 17 00:00:00 2001 From: tommy Date: Tue, 29 Oct 2024 22:12:59 -0400 Subject: [PATCH] use client local time for date display --- src/client/components/monitor/StatusPage/StatusHeader.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/components/monitor/StatusPage/StatusHeader.tsx b/src/client/components/monitor/StatusPage/StatusHeader.tsx index 189d0e3..0ef7baa 100644 --- a/src/client/components/monitor/StatusPage/StatusHeader.tsx +++ b/src/client/components/monitor/StatusPage/StatusHeader.tsx @@ -143,16 +143,16 @@ export const StatusPageHeader = ({ info, workspaceId }) => { const formatDate = (date) => { const options = { - month: 'short', + weekday: 'long', + year: 'numeric', + month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', - timeZone: 'UTC', hour12: true, }; const formatted = new Date(date).toLocaleString('en-US', options); - const [monthDay, time] = formatted.split(','); - return `Last updated on ${monthDay} at${time} UTC`; + return `Last updated ${formatted}`; }; return (