fix timezone
This commit is contained in:
@@ -20,4 +20,4 @@ export const labels: Record<string, string> = {
|
|||||||
CLOSED: 'Fechado'
|
CLOSED: 'Fechado'
|
||||||
}
|
}
|
||||||
|
|
||||||
export const tz = 'local'
|
export const tz = 'America/Sao_Paulo'
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user