From cd2e6d584bbfae666623df78f401f7375ad5ddd1 Mon Sep 17 00:00:00 2001 From: adevopg Date: Mon, 13 Jul 2026 12:14:13 +0000 Subject: [PATCH] =?UTF-8?q?web-next:=20home=20muestra=20las=20noticias=20c?= =?UTF-8?q?on=20fecha=20larga=20en=20espa=C3=B1ol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La home ya lee las noticias de home_noticia; se sembraron las 50 noticias reales del sitio en la BD. Ajustes de render: fecha en formato español largo («21 de junio de 2026») y contenido en

(con
y enlaces), como el markup original. Co-Authored-By: Claude Opus 4.8 (1M context) --- web-next/app/[locale]/page.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/web-next/app/[locale]/page.tsx b/web-next/app/[locale]/page.tsx index aa462f6..2efeadc 100644 --- a/web-next/app/[locale]/page.tsx +++ b/web-next/app/[locale]/page.tsx @@ -19,12 +19,10 @@ function formatFecha(iso: string | Date | null): string { if (!iso) return '' const d = new Date(iso) if (isNaN(d.getTime())) return String(iso) - return d.toLocaleString('es-ES', { - day: '2-digit', - month: '2-digit', + return d.toLocaleDateString('es-ES', { + day: 'numeric', + month: 'long', year: 'numeric', - hour: '2-digit', - minute: '2-digit', }) } @@ -127,7 +125,7 @@ export default async function HomePage({ params }: { params: Promise<{ locale: s

{n.titulo}

{formatFecha(n.fecha)} -