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'
}
export const tz = 'local'
export const tz = 'America/Sao_Paulo'

View File

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

View File

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