Skip to content

Commit

Permalink
format date
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom committed Oct 21, 2023
1 parent 318f016 commit 578d2de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export default function ReportsTable({
return (
<Cell
key={header}
value={d.format(d.parseISO(`${header}-01`), 'MMMM yyyy')}
// eslint-disable-next-line rulesdir/typography
value={d.format(d.parseISO(`${header}-01`), "MMM ''yy")}
width="flex"
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}),
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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 => {
Expand Down

0 comments on commit 578d2de

Please sign in to comment.