Skip to content

Commit

Permalink
Remove last argument to dateI18n
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 12, 2024
1 parent 9e44b6f commit 012a507
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/fields/src/fields/date/date-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import type { BasePost } from '../../types';
const getFormattedDate = ( dateToDisplay: string | null ) =>
dateI18n(
getSettings().formats.datetimeAbbreviated,
getDate( dateToDisplay ),
undefined
getDate( dateToDisplay )
);

const DateView = ( { item }: { item: BasePost } ) => {
Expand Down

0 comments on commit 012a507

Please sign in to comment.