diff --git a/src/sections/dataset/dataset-files/files-table/file-info/file-info-cell/file-info-data/FileDate.tsx b/src/sections/dataset/dataset-files/files-table/file-info/file-info-cell/file-info-data/FileDate.tsx index b79d8a6a8..1aa10a0a3 100644 --- a/src/sections/dataset/dataset-files/files-table/file-info/file-info-cell/file-info-data/FileDate.tsx +++ b/src/sections/dataset/dataset-files/files-table/file-info/file-info-cell/file-info-data/FileDate.tsx @@ -7,10 +7,7 @@ export function FileDate({ date }: { date: FileDateModel }) { return (
- + {t(`table.date.${date.type}`)}
) diff --git a/src/sections/file/file-embargo/FileEmbargoDate.tsx b/src/sections/file/file-embargo/FileEmbargoDate.tsx index d2a36965a..6bbbcc818 100644 --- a/src/sections/file/file-embargo/FileEmbargoDate.tsx +++ b/src/sections/file/file-embargo/FileEmbargoDate.tsx @@ -12,7 +12,7 @@ interface FileEmbargoDateProps { export function FileEmbargoDate({ embargo, datasetPublishingStatus, - format = 'short' + format = 'YYYY-MM-DD' }: FileEmbargoDateProps) { const { t } = useTranslation('files') @@ -20,13 +20,11 @@ export function FileEmbargoDate({ return <> } - // TODO: use time tag with dateTime attr https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time - return (
{t(embargoTypeOfDate(embargo.isActive, datasetPublishingStatus))}{' '} -