From 35535b37798630a239f3c0800c22701ad3a40060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Gustavo?= <166467972+JoaoGustavo-dev@users.noreply.github.com> Date: Thu, 30 Oct 2025 17:51:45 -0300 Subject: [PATCH] fix-timezone --- .../app/(main-routes)/calendar/page.tsx | 1 + .../components/agendamento/AgendaCalendar.tsx | 31 ++++++++++++------- susconecta/components/ui/calendar.tsx | 8 ++--- 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/susconecta/app/(main-routes)/calendar/page.tsx b/susconecta/app/(main-routes)/calendar/page.tsx index f1ce1b3..869ccc4 100644 --- a/susconecta/app/(main-routes)/calendar/page.tsx +++ b/susconecta/app/(main-routes)/calendar/page.tsx @@ -170,6 +170,7 @@ export default function AgendamentoPage() { plugins={[dayGridPlugin, timeGridPlugin, interactionPlugin]} initialView="dayGridMonth" locale={pt_br_locale} + timeZone={"America/Sao_Paulo"} events={requestsList} headerToolbar={{ left: "prev,next today", diff --git a/susconecta/components/agendamento/AgendaCalendar.tsx b/susconecta/components/agendamento/AgendaCalendar.tsx index da0abe1..983e49d 100644 --- a/susconecta/components/agendamento/AgendaCalendar.tsx +++ b/susconecta/components/agendamento/AgendaCalendar.tsx @@ -66,7 +66,8 @@ export default function AgendaCalendar({ weekday: 'long', day: 'numeric', month: 'long', - year: 'numeric' + year: 'numeric', + timeZone: 'America/Sao_Paulo' }); }; @@ -205,18 +206,22 @@ export default function AgendaCalendar({