From 88ab2430240ad5ec59226b7602f534f5a302bc4e Mon Sep 17 00:00:00 2001 From: Kariamos Date: Fri, 24 Oct 2025 14:34:17 +0200 Subject: [PATCH] feat: Format dates in Italian locale for attribution and expiration dates --- src/pages/Wallet/ExpiredAttributionTable.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/Wallet/ExpiredAttributionTable.tsx b/src/pages/Wallet/ExpiredAttributionTable.tsx index 1ef4b84c..831d60ce 100644 --- a/src/pages/Wallet/ExpiredAttributionTable.tsx +++ b/src/pages/Wallet/ExpiredAttributionTable.tsx @@ -28,7 +28,11 @@ const useExpiredRows = ({ start, limit }: { start: number; limit: number }) => { }, attributionDate: { title: req.attributionDate, - content: {req.attributionDate}, + content: ( + + {new Date(req.attributionDate).toLocaleDateString("it-IT")} + + ), }, gross: { title: "€ " + req.amount?.gross?.value, @@ -44,7 +48,7 @@ const useExpiredRows = ({ start, limit }: { start: number; limit: number }) => { }, expiredDate: { title: expiredDate.toISOString().split("T")[0], - content: {expiredDate.toLocaleDateString()}, + content: {expiredDate.toLocaleDateString("it-IT")}, }, }; }),