parse and display correct time, if value is set

This commit is contained in:
dannyrb 2020-05-11 22:10:05 -04:00 committed by James A. Petts
parent 2ed1071956
commit 1cd643314f
2 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ function processResults(qidoStudies) {
studies.push({
studyInstanceUid: getString(qidoStudy['0020000D']),
studyDate: getString(qidoStudy['00080020']),
// HHmmss.SSS (24-hour, minutes, seconds, fractional seconds)
studyTime: getString(qidoStudy['00080030']),
accessionNumber: getString(qidoStudy['00080050']),
// referringPhysicianName: getString(qidoStudy['00080090']),

View File

@ -183,7 +183,7 @@ function StudyListContainer({ history, data: studies }) {
<span className="mr-4">
{moment(studyDate).format('MMM-DD-YYYY')}
</span>
<span>{moment(studyTime).format('hh:mm A')}</span>
{studyTime && (<span>{moment(studyTime, 'HHmmss.SSS').format('hh:mm A')}</span>)}
</div>
),
title: 'time',