From 89c40caab81a782f432eeb3bb783db5ab6124baa Mon Sep 17 00:00:00 2001 From: Hector Date: Mon, 27 Oct 2025 10:22:10 +0000 Subject: [PATCH] fix(preprod): Format timezone to user prefs Resolves: EME-466 --- .../sidebar/buildDetailsSidebarAppInfo.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/static/app/views/preprod/buildDetails/sidebar/buildDetailsSidebarAppInfo.tsx b/static/app/views/preprod/buildDetails/sidebar/buildDetailsSidebarAppInfo.tsx index 7a52ac701284dd..8eb0ce4462489b 100644 --- a/static/app/views/preprod/buildDetails/sidebar/buildDetailsSidebarAppInfo.tsx +++ b/static/app/views/preprod/buildDetails/sidebar/buildDetailsSidebarAppInfo.tsx @@ -8,7 +8,7 @@ import {Tooltip} from 'sentry/components/core/tooltip'; import {IconClock, IconFile, IconJson, IconLink, IconMobile} from 'sentry/icons'; import {t} from 'sentry/locale'; import {formatBytesBase10} from 'sentry/utils/bytes/formatBytesBase10'; -import {getFormattedDate} from 'sentry/utils/dates'; +import {getFormat, getFormattedDate, getUtcToSystem} from 'sentry/utils/dates'; import {unreachable} from 'sentry/utils/unreachable'; import {openInstallModal} from 'sentry/views/preprod/components/installModal'; import { @@ -72,6 +72,11 @@ interface BuildDetailsSidebarAppInfoProps { export function BuildDetailsSidebarAppInfo(props: BuildDetailsSidebarAppInfoProps) { const labels = getLabels(props.appInfo.platform ?? undefined); + const datetimeFormat = getFormat({ + seconds: true, + timeZone: true, + }); + return ( @@ -135,7 +140,11 @@ export function BuildDetailsSidebarAppInfo(props: BuildDetailsSidebarAppInfoProp - {getFormattedDate(props.appInfo.date_added, 'MM/DD/YYYY [at] hh:mm A')} + {getFormattedDate( + getUtcToSystem(props.appInfo.date_added), + datetimeFormat, + {local: true} + )}