diff --git a/WebApplication/src/helpers/date-helpers.js b/WebApplication/src/helpers/date-helpers.js index 0616243..c61b3fd 100644 --- a/WebApplication/src/helpers/date-helpers.js +++ b/WebApplication/src/helpers/date-helpers.js @@ -73,10 +73,14 @@ export default { formatDateForDisplay(dicomDate, dateFormat) { if (dicomDate && dicomDate.length == 8) { let d = parse(dicomDate, "yyyyMMdd", new Date()); - return format(d, dateFormat); - } else { - return ""; + if (!isNaN(d.getDate())) { + return format(d, dateFormat); + } + } + if (dicomDate.length > 0) { + return dicomDate; } + return ""; }, isDateTag(tagName) { return ["StudyDate", "PatientBirthDate", "SeriesDate", "AcquisitionDate", "ContentDate"].indexOf(tagName) != -1; diff --git a/release-notes.md b/release-notes.md index cdac2b5..d983b70 100644 --- a/release-notes.md +++ b/release-notes.md @@ -10,6 +10,8 @@ Changes: Fixes: - When modifying studies, dates selected from the DatePicker were not always taken into account. - Fixed the criteria to display the OHIF Segmentation viewer. + - Fixed display of invalid dates like 00000000. + 1.6.4 (2024-10-10) ==================