From 578d2dea3b96a889a0519d9cff101c5fb86679f7 Mon Sep 17 00:00:00 2001 From: carkom Date: Sat, 21 Oct 2023 23:58:59 +0100 Subject: [PATCH] format date --- .../src/components/reports/ReportsTable.js | 3 ++- .../reports/spreadsheets/default-spreadsheet.tsx | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/desktop-client/src/components/reports/ReportsTable.js b/packages/desktop-client/src/components/reports/ReportsTable.js index 3a87ffe1837..2583415aca2 100644 --- a/packages/desktop-client/src/components/reports/ReportsTable.js +++ b/packages/desktop-client/src/components/reports/ReportsTable.js @@ -70,7 +70,8 @@ export default function ReportsTable({ return ( ); diff --git a/packages/desktop-client/src/components/reports/spreadsheets/default-spreadsheet.tsx b/packages/desktop-client/src/components/reports/spreadsheets/default-spreadsheet.tsx index d3f866225f7..0a30baa497a 100644 --- a/packages/desktop-client/src/components/reports/spreadsheets/default-spreadsheet.tsx +++ b/packages/desktop-client/src/components/reports/spreadsheets/default-spreadsheet.tsx @@ -147,7 +147,8 @@ export default function createSpreadsheet( }); return { date: month, - dateFormatted: d.format(d.parseISO(`${month}-01`), 'MMMM yyyy'), + // eslint-disable-next-line rulesdir/typography + dateFormatted: d.format(d.parseISO(`${month}-01`), "MMM ''yy"), amount: groupedAmount, }; }), @@ -203,7 +204,8 @@ export default function createSpreadsheet( const indexedSplit = index(stacked, 'name'); return { - date: d.format(d.parseISO(`${month}-01`), 'MMMM yyyy'), + // eslint-disable-next-line rulesdir/typography + date: d.format(d.parseISO(`${month}-01`), "MMM ''yy"), ...indexedSplit, totalDebts: -1 * integerToAmount(perMonthDebts), totalAssets: integerToAmount(perMonthAssets), @@ -291,7 +293,8 @@ function recalculate(data, start, end) { debts: integerToAmount(debts), change: integerToCurrency(change), networth: integerToCurrency(total), - date: d.format(x, 'MMMM yyyy'), + // eslint-disable-next-line rulesdir/typography + date: d.format(x, "MMM ''yy"), }); arr.forEach(item => {