TimeZone In WorkFlow

Even though I set the workfow timezone when I run new Date() inside in the node function, it brings the date with the default timezone.

I would like to use new Date() inside a node function.
How can I adjust the time zone in this case?

Hey @Edson_Rodrigues,

The system you’re running n8n on might have a different timezone. You can setup the environment variable TZ to configure the timezone. This should solve your issue.

Hi Harshil, i have an issue as well about time, my server locale time is GMT +7 , I already set 2 environment variable for n8n GENERIC_TIMEZONE and TZ to be Asia/Bangkok, but when I see node execution date, is always keep UTC 0 time.
do you have any idea? this only applied to n8n only, the other apps respect the vps local time.
Thank you for your time