1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-13 13:48:59 +02:00

Use time element for the display time.

This commit is contained in:
Thomas Heartman 2025-07-31 10:56:32 +02:00
parent 2b88619ac8
commit 2b3790f05d
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78

View File

@ -99,7 +99,8 @@ const ProjectList = styled('ul')(({ theme }) => ({
gap: theme.spacing(1),
}));
const exampleDate = new Date('2014-09-29T14:50:46');
const exampleDateString = '2014-09-29T14:50:46';
const exampleDate = new Date(exampleDateString);
const LocaleSelector = styled('div')(({ theme }) => ({
marginTop: theme.spacing(1.5),
@ -252,7 +253,10 @@ export const ProfileTab = ({ user }: IProfileTabProps) => {
</Select>
</StyledFormControl>
<Typography id={exampleDateId}>
Example: {formatDateYMDHM(exampleDate, currentLocale)}
Example:{' '}
<time dateTime={exampleDateString}>
{formatDateYMDHM(exampleDate, currentLocale)}
</time>
</Typography>
</LocaleSelector>
{productivityReportEmailEnabled ? (