fix timezone
This commit is contained in:
@@ -20,4 +20,4 @@ export const labels: Record<string, string> = {
|
||||
CLOSED: 'Fechado'
|
||||
}
|
||||
|
||||
export const tz = 'local'
|
||||
export const tz = 'America/Sao_Paulo'
|
||||
|
||||
@@ -203,7 +203,7 @@ export default function Route({
|
||||
<DateTime>
|
||||
{LuxonDateTime.fromISO(
|
||||
output.scheduled_for,
|
||||
{ zone: 'local' }
|
||||
{ zone: 'America/Sao_Paulo' }
|
||||
).toJSDate()}
|
||||
{}
|
||||
</DateTime>
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user