webpack/scenes/ContentViews/Details/Repositories/LastSync.js in katello-4.3.0.rc2 vs webpack/scenes/ContentViews/Details/Repositories/LastSync.js in katello-4.3.0.rc2.1

- old
+ new

@@ -3,17 +3,17 @@ CheckCircleIcon, ExclamationTriangleIcon, ExclamationCircleIcon, InProgressIcon, } from '@patternfly/react-icons'; +import { FormattedDate } from 'react-intl'; import { Tooltip, TooltipPosition } from '@patternfly/react-core'; import { foremanUrl } from 'foremanReact/common/helpers'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import InactiveText from '../../components/InactiveText'; -import { makeReadableDate } from '../../../../utils/dateTimeHelpers'; const LastSync = ({ lastSyncWords, lastSync, emptyMessage, startedAt, }) => { if (lastSync && lastSyncWords) { @@ -39,10 +39,18 @@ if (startedAt) { return ( <Tooltip position={TooltipPosition.top} - content={makeReadableDate(startedAt)} + content={ + <FormattedDate + value={startedAt} + day="2-digit" + month="long" + hour="2-digit" + minute="2-digit" + year="numeric" + />} > <a href={foremanUrl(`/foreman_tasks/tasks/${id}/`)} style={{ display: 'inline-flex', alignItems: 'center', margin: 0,