You can adjust the display for different time zones:
const date = new Date()
const dateTimeStr = date.toString()
const timeZoneIndex = dateTimeStr.indexOf('GMT')
const timeZoneOffset = dateTimeStr.slice(timeZoneIndex + 3, timeZoneIndex + 8)
return timeZoneOffset
I share you the documentation:
- Date.prototype.toLocaleDateString() - JavaScript | MDN
- Date.prototype.toLocaleTimeString() - JavaScript | MDN
You could also try to use an inject node with the Timestamp function and see what result you get.
I hope this information is helpful. Please let me know if you have any questions.
Thanks,
Eduardo M.