From 5b92c9e8f30ca51c0024c927e65ea403cabde15d Mon Sep 17 00:00:00 2001 From: nixocio Date: Tue, 4 May 2021 13:47:52 -0400 Subject: [PATCH] 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. --- .../Inventory/InventorySources/InventorySourceListItem.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceListItem.jsx b/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceListItem.jsx index 2ac1f21fc3..7c8f86d7ff 100644 --- a/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceListItem.jsx +++ b/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceListItem.jsx @@ -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({ {job.finished && (
- {t`FINISHED:`} {job.finished} + {t`FINISHED:`} {formatDateString(job.finished)}
)}