Convert datetime in transformer

How can I change the datatime to local, currently UTC

d = {{getMyCalendars.data.value}}
var outArr = []
d.forEach((a) => {
outArr.push({
id: a.id,
title: a.subject,
start: a.start.dateTime,
end: a.end.dateTime,
details: a.bodyPreview

})
})
return outArr

Hey @nroeder!

You can try using moment.tz similar to what is suggested in this thread. The library comes pre-packaged with Retool so you should be able to reference it straight away in your JS query. Let me know if that works :slightly_smiling_face:

Forgot the 's' at the end of hours... Thanks!