diff --git a/packages/content-management/table_list_view_table/src/components/updated_at_field.tsx b/packages/content-management/table_list_view_table/src/components/updated_at_field.tsx index 6901784089a88..f88a24000e323 100644 --- a/packages/content-management/table_list_view_table/src/components/updated_at_field.tsx +++ b/packages/content-management/table_list_view_table/src/components/updated_at_field.tsx @@ -47,7 +47,7 @@ export const UpdatedAtField: FC<{ dateTime?: string; DateFormatterComp?: DateFor } return ( - {updatedAt.format('LL')} + {updatedAt.format('ll')} ); }; diff --git a/packages/content-management/table_list_view_table/src/table_list_view.test.tsx b/packages/content-management/table_list_view_table/src/table_list_view.test.tsx index 989a4eb0a0126..50c8cdfdfde3b 100644 --- a/packages/content-management/table_list_view_table/src/table_list_view.test.tsx +++ b/packages/content-management/table_list_view_table/src/table_list_view.test.tsx @@ -269,8 +269,8 @@ describe('TableListView', () => { expect(tableCellsValues).toEqual([ // Renders the datetime with this format: "July 28, 2022" - ['Item 1Item 1 description', updatedAtValues[0].format('LL')], - ['Item 2Item 2 description', updatedAtValues[1].format('LL')], + ['Item 1Item 1 description', updatedAtValues[0].format('ll')], + ['Item 2Item 2 description', updatedAtValues[1].format('ll')], ]); }); @@ -1132,11 +1132,11 @@ describe('TableListView', () => { Array [ Array [ "Item 1", - "July 15, 2023", + "Jul 15, 2023", ], Array [ "Item 2", - "July 15, 2023", + "Jul 15, 2023", ], ] `); @@ -1166,7 +1166,7 @@ describe('TableListView', () => { Array [ Array [ "Item from search", - "July 1, 2023", + "Jul 1, 2023", ], ] `); @@ -1208,11 +1208,11 @@ describe('TableListView', () => { Array [ Array [ "Item 1", - "July 15, 2023", + "Jul 15, 2023", ], Array [ "Item 2", - "July 15, 2023", + "Jul 15, 2023", ], ] `);