Suhani Shah
10/19/2021, 12:06 PMtest
table for column createdDate
but in my case issue is graphql automatically convert into UTC, so, It store UTC date in DB
Also I tried with custom resolver to modify UTC into company timezone but still it stores UTC value, because of the prisma I think
let date = dayjs().tz(authenticated.companyTimezone).format('YYYY-MM-DD HH:mm:ss') (OUTPUT "2021-10-19T13:42:00+02:00")
const payload = {
...data,
CreatedDate: date,
}
return prisma.Test.create({
data: payload,
...select,
})
So, again prisma convert into UTC because of +02.00
in above date value.Ryan
10/19/2021, 12:19 PMSuhani Shah
10/19/2021, 12:23 PMRyan
10/19/2021, 12:31 PM