Having a string e.g. "8.8.22 14:35:06" where the time is related to timezone "Europe/Berlin" in the preview of the evaluated expression the result is correct but when executing the node it's not correct anymore:
I also tried to set the timezone right after .toDateTime() but this changed nothing.
To Reproduce
Create a Set node with a string value "8.8.22 14:35:06" for the datetime string
Use the expression DateTimeString DateTimeString.toDateTime().toISO() to create the ISO datetime string.
See that the expression evaluation preview shows the correct string, while when executing the node is produces another string with an incorrect time.
Bug Description
Having a string e.g. "8.8.22 14:35:06" where the time is related to timezone "Europe/Berlin" in the preview of the evaluated expression the result is correct but when executing the node it's not correct anymore: I also tried to set the timezone right after .toDateTime() but this changed nothing.
To Reproduce
DateTimeString.toDateTime().toISO()
to create the ISO datetime string.Expected behavior
Return the correct DateTime string.
Operating System
Ubuntu
n8n Version
1.65.2
Node.js Version
Latest Docker image
Database
SQLite (default)
Execution mode
main (default)