diff --git a/apps/frontend/src/features/belo/BeloAnalysisPage.tsx b/apps/frontend/src/features/belo/BeloAnalysisPage.tsx index 01fd895..0522ed8 100644 --- a/apps/frontend/src/features/belo/BeloAnalysisPage.tsx +++ b/apps/frontend/src/features/belo/BeloAnalysisPage.tsx @@ -27,9 +27,16 @@ function formatDate(d: Date): string { return `${y}-${m}-${day}`; } +const dateFormatter = new Intl.DateTimeFormat("es-AR", { + day: "numeric", + month: "long", + year: "numeric", +}); + function formatShortDate(iso: string): string { - const [, m, d] = iso.split("-"); - return `${d}/${m}`; + const datePart = iso.split(" ")[0]; + const [y, m, d] = datePart.split("-").map(Number); + return dateFormatter.format(new Date(y, m - 1, d)); } export function BeloAnalysisPage() { @@ -155,7 +162,15 @@ export function BeloAnalysisPage() { -
+
+
+

+ Cotización actual (compra) +

+

+ ${priceFormatter.format(currentBuy)} +

+

Mínimo histórico (compra) @@ -169,7 +184,7 @@ export function BeloAnalysisPage() {

{historical?.minBuyDate && (

- {formatShortDate(historical.minBuyDate)} + el {formatShortDate(historical.minBuyDate)}

)} @@ -188,7 +203,7 @@ export function BeloAnalysisPage() {

{historical?.maxBuyDate && (

- {formatShortDate(historical.maxBuyDate)} + el {formatShortDate(historical.maxBuyDate)}

)}