Make date consistent on tooltip display

Make date consistent on tooltip to display info about job.
There are 3 places that define similar function on the code basis. Make
them consistent in how to display date.
This commit is contained in:
nixocio 2021-05-04 13:47:52 -04:00
parent e08590290c
commit 5b92c9e8f3

View File

@ -20,6 +20,7 @@ import styled from 'styled-components';
import StatusIcon from '../../../components/StatusIcon';
import InventorySourceSyncButton from '../shared/InventorySourceSyncButton';
import { formatDateString } from '../../../util/dates';
const ExclamationTriangleIcon = styled(PFExclamationTriangleIcon)`
color: var(--pf-global--warning-color--100);
@ -46,7 +47,7 @@ function InventorySourceListItem({
</div>
{job.finished && (
<div>
{t`FINISHED:`} {job.finished}
{t`FINISHED:`} {formatDateString(job.finished)}
</div>
)}
</>