From 367d78d43d2363fd441593891be5eafcb34d9011 Mon Sep 17 00:00:00 2001 From: Felipe Coutinho Date: Sat, 2 May 2026 22:08:29 +0000 Subject: [PATCH] =?UTF-8?q?fix(dashboard/anotacoes):=20corrigir=20diverg?= =?UTF-8?q?=C3=AAncia=20de=20fuso=20no=20formatter=20de=20datas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Intl.DateTimeFormat sem timeZone usava o fuso do servidor (UTC) no SSR e o fuso do browser (BRT) no cliente, causando erro de hidratação. Ambos os formatters passam a usar timeZone: "America/Sao_Paulo" explicitamente. Co-Authored-By: Claude Opus 4.7 --- src/features/notes/lib/formatters.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/features/notes/lib/formatters.ts b/src/features/notes/lib/formatters.ts index 6bfdc21..adf0cbe 100644 --- a/src/features/notes/lib/formatters.ts +++ b/src/features/notes/lib/formatters.ts @@ -5,11 +5,13 @@ type NoteTasksSummaryInput = { const NOTE_CREATED_AT_FORMATTER = new Intl.DateTimeFormat("pt-BR", { dateStyle: "medium", + timeZone: "America/Sao_Paulo", }); const NOTE_CREATED_AT_LONG_FORMATTER = new Intl.DateTimeFormat("pt-BR", { dateStyle: "long", timeStyle: "short", + timeZone: "America/Sao_Paulo", }); const parseNoteDate = (value: string | Date | null | undefined) => {