Describe the problem/error/question
I am using the following expression to convert a GMT date and time to Brasil timezone:
{{ DateTime.fromFormat($json[‘Submitted at’], ‘yyyy-MM-dd HH:mm:ss’, { zone: ‘utc’ }).setZone(‘America/Sao_Paulo’).toFormat(‘yyyy-MM-dd HH:mm:ss’)}}
It usually works, like in this case:
However it sometimes returns an error:
Can someone help me understand what I am doing wrong?
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: v1.31.2
- Database (default: SQLite): sqlite
- n8n EXECUTIONS_PROCESS setting (default: own, main): main
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- **Operating system:**ubuntu

