Skip to content

Commit 88ab243

Browse files
committed
feat: Format dates in Italian locale for attribution and expiration dates
1 parent 50ca53a commit 88ab243

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/pages/Wallet/ExpiredAttributionTable.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ const useExpiredRows = ({ start, limit }: { start: number; limit: number }) => {
2828
},
2929
attributionDate: {
3030
title: req.attributionDate,
31-
content: <span>{req.attributionDate}</span>,
31+
content: (
32+
<span>
33+
{new Date(req.attributionDate).toLocaleDateString("it-IT")}
34+
</span>
35+
),
3236
},
3337
gross: {
3438
title: "€ " + req.amount?.gross?.value,
@@ -44,7 +48,7 @@ const useExpiredRows = ({ start, limit }: { start: number; limit: number }) => {
4448
},
4549
expiredDate: {
4650
title: expiredDate.toISOString().split("T")[0],
47-
content: <span>{expiredDate.toLocaleDateString()}</span>,
51+
content: <span>{expiredDate.toLocaleDateString("it-IT")}</span>,
4852
},
4953
};
5054
}),

0 commit comments

Comments
 (0)