Skip to content

Commit

Permalink
Fixed usage of deprecated way of date formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhudec committed Dec 12, 2024
1 parent 7faa998 commit e34a057
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client/modules/Events/EventDetails/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import State from '../../../components/State'

import { VerticalTabNav } from '../../../components/TabNav'
import InteractionsV3 from '../../../components/Resource/InteractionsV3'
import { formatLongDate } from '../../../utils/date'
import { formatDate, DATE_FORMAT_FULL } from '../../../utils/date-utils'
import StatusMessage from '../../../components/StatusMessage'

const StyledSummaryTable = styled(SummaryTable)({
Expand Down Expand Up @@ -73,7 +73,7 @@ const Attendees = ({ eventId, isDisabled }) => (
},
{
label: 'Date attended',
value: formatLongDate(date),
value: formatDate(date, DATE_FORMAT_FULL),
},
{
label: 'Service delivery',
Expand Down Expand Up @@ -182,7 +182,7 @@ const EventDetails = ({ name, ...props }) => {
...(flashMessages.info || []),
...(props.disabledOn
? [
`This event was disabled on ${formatLongDate(props.disabledOn)} and can no longer be edited.`,
`This event was disabled on ${formatDate(props.disabledOn, DATE_FORMAT_FULL)} and can no longer be edited.`,
]
: []),
],
Expand Down

0 comments on commit e34a057

Please sign in to comment.