fix timezone

This commit is contained in:
2026-01-01 01:14:24 -03:00
parent e3aff10140
commit 1abfd0e93e
3 changed files with 5 additions and 3 deletions

View File

@@ -20,4 +20,4 @@ export const labels: Record<string, string> = {
CLOSED: 'Fechado' CLOSED: 'Fechado'
} }
export const tz = 'local' export const tz = 'America/Sao_Paulo'

View File

@@ -203,7 +203,7 @@ export default function Route({
<DateTime> <DateTime>
{LuxonDateTime.fromISO( {LuxonDateTime.fromISO(
output.scheduled_for, output.scheduled_for,
{ zone: 'local' } { zone: 'America/Sao_Paulo' }
).toJSDate()} ).toJSDate()}
{} {}
</DateTime> </DateTime>

View File

@@ -66,7 +66,9 @@ export function Assigned({ courses }: AssignedProps) {
? state.enrollments.map((e: any) => ({ ? state.enrollments.map((e: any) => ({
...e, ...e,
scheduled_for: e.scheduled_for scheduled_for: e.scheduled_for
? DateTime.fromISO(e.scheduled_for, { zone: 'local' }).toJSDate() ? DateTime.fromISO(e.scheduled_for, {
zone: 'America/Sao_Paulo'
}).toJSDate()
: undefined : undefined
})) }))
: [emptyRow] : [emptyRow]