diff --git a/frontend/public/locales/en-GB/translation.json b/frontend/public/locales/en-GB/translation.json index 341da26f2..f6c714ba7 100644 --- a/frontend/public/locales/en-GB/translation.json +++ b/frontend/public/locales/en-GB/translation.json @@ -1129,10 +1129,12 @@ "format": "Format: yyyy/MM/dd HH:mm:ss" }, "creationDate": { - "label": "Creation Date" + "label": "Creation Date", + "placeholder": "e.g. 2025/01/17 14:30:00" }, "modificationDate": { - "label": "Modification Date" + "label": "Modification Date", + "placeholder": "e.g. 2025/01/17 14:30:00" }, "trapped": { "label": "Trapped Status", diff --git a/frontend/src/components/tools/changeMetadata/ChangeMetadataSettings.tsx b/frontend/src/components/tools/changeMetadata/ChangeMetadataSettings.tsx index cb19b721f..185c69f6b 100644 --- a/frontend/src/components/tools/changeMetadata/ChangeMetadataSettings.tsx +++ b/frontend/src/components/tools/changeMetadata/ChangeMetadataSettings.tsx @@ -15,9 +15,6 @@ interface ChangeMetadataSettingsProps { updateCustomMetadata: (id: string, key: string, value: string) => void; } -// Global date/time fixed at module load time -const currentDateTime = new Date(); -const formattedDateTime = `${currentDateTime.getFullYear()}/${String(currentDateTime.getMonth() + 1).padStart(2, '0')}/${String(currentDateTime.getDate()).padStart(2, '0')} ${String(currentDateTime.getHours()).padStart(2, '0')}:${String(currentDateTime.getMinutes()).padStart(2, '0')}:${String(currentDateTime.getSeconds()).padStart(2, '0')}`; const ChangeMetadataSettings = ({ parameters, @@ -159,7 +156,7 @@ const ChangeMetadataSettings = ({ onParameterChange('creationDate', e.target.value)} disabled={fieldsDisabled} @@ -167,7 +164,7 @@ const ChangeMetadataSettings = ({ onParameterChange('modificationDate', e.target.value)} disabled={fieldsDisabled}