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:
parent
2b88619ac8
commit
2b3790f05d
@ -99,7 +99,8 @@ const ProjectList = styled('ul')(({ theme }) => ({
|
|||||||
gap: theme.spacing(1),
|
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 }) => ({
|
const LocaleSelector = styled('div')(({ theme }) => ({
|
||||||
marginTop: theme.spacing(1.5),
|
marginTop: theme.spacing(1.5),
|
||||||
@ -252,7 +253,10 @@ export const ProfileTab = ({ user }: IProfileTabProps) => {
|
|||||||
</Select>
|
</Select>
|
||||||
</StyledFormControl>
|
</StyledFormControl>
|
||||||
<Typography id={exampleDateId}>
|
<Typography id={exampleDateId}>
|
||||||
Example: {formatDateYMDHM(exampleDate, currentLocale)}
|
Example:{' '}
|
||||||
|
<time dateTime={exampleDateString}>
|
||||||
|
{formatDateYMDHM(exampleDate, currentLocale)}
|
||||||
|
</time>
|
||||||
</Typography>
|
</Typography>
|
||||||
</LocaleSelector>
|
</LocaleSelector>
|
||||||
{productivityReportEmailEnabled ? (
|
{productivityReportEmailEnabled ? (
|
||||||
|
Loading…
Reference in New Issue
Block a user