Wizard: switch snapshot date in wizard to RFC3339

This commit is contained in:
Bryttanie House 2024-10-18 09:34:16 -04:00 committed by Klara Simickova
parent e5934452ca
commit 29736d8d0c
4 changed files with 43 additions and 13 deletions

View file

@ -478,7 +478,7 @@ export const ContentList = ({
case useLatest:
return 'Use latest';
case !!snapshotDate:
return `State as of ${snapshotDate}`;
return `State as of ${yyyyMMddFormat(new Date(snapshotDate))}`;
default:
return '';
}
@ -505,7 +505,9 @@ export const ContentList = ({
headerContent={
useLatest
? 'Repositories as of today'
: `Repositories as of ${snapshotDate}`
: `Repositories as of ${yyyyMMddFormat(
new Date(snapshotDate)
)}`
}
hasAutoWidth
minWidth="60rem"