diff --git a/src/components/Investigation/InvestigationTable.js b/src/components/Investigation/InvestigationTable.js index 5b2051f571891066c9eaf7d5a6c6d9ab562552c0..ae499a6ffaa0a5b75ae0e6779c337b5d079c3734 100644 --- a/src/components/Investigation/InvestigationTable.js +++ b/src/components/Investigation/InvestigationTable.js @@ -128,7 +128,11 @@ function getColumns({ showProposalLinks, showInvestigationStats, showFiles }) { text: 'Release', dataField: 'releaseDate', formatter: (_, investigation) => - dateFormatter(investigation.releaseDate, INVESTIGATION_DATE_FORMAT), + dateFormatter( + investigation.releaseDate, + INVESTIGATION_DATE_FORMAT, + false + ), sort: true, responsiveHeaderStyle: getLgHeaderStyle(110, false), }, diff --git a/src/components/Investigation/utils.js b/src/components/Investigation/utils.js index 76d2224a692e6a0a63f7a5afba3d49d1ac4358f4..eb9dfbb88a45b0e95fdf064aed5f38255d72fbc2 100644 --- a/src/components/Investigation/utils.js +++ b/src/components/Investigation/utils.js @@ -61,7 +61,11 @@ export function startDateFormatter(investigation) { placement="bottom" overlay={calendarHoverFocus} > - {dateFormatter(investigation.startDate, INVESTIGATION_DATE_FORMAT)} + {dateFormatter( + investigation.startDate, + INVESTIGATION_DATE_FORMAT, + true + )} ) : ( @@ -69,10 +73,10 @@ export function startDateFormatter(investigation) { ); } -export function dateFormatter(date, format) { +export function dateFormatter(date, format, hasIcon) { return date ? ( - + {hasIcon && } {moment(date).format(format)} ) : (