SHOW timezone;
SELECT current_setting(‘TimeZone’);
SELECT NOW(), CURRENT_DATE;
SELECT (NOW() AT TIME ZONE ‘Europe/Istanbul’)::date;
Result of this is (in n8n):
[
{
"TimeZone": "Europe/Istanbul"
},
{
"current_setting": "Europe/Istanbul"
},
{
"now": "2025-08-28T08:11:00.437Z",
"current_date": "2025-08-27T21:00:00.000Z"
},
{
"timezone": "2025-08-27T21:00:00.000Z"
}
]
And the result in postgres bash:
n8n=# SHOW timezone;
TimeZone
-----------------
Europe/Istanbul
(1 row)
n8n=# SELECT current_setting('TimeZone');
current_setting
-----------------
Europe/Istanbul
(1 row)
n8n=# SELECT NOW(), CURRENT_DATE;
now | current_date
-------------------------------+--------------
2025-08-28 11:13:42.502521+03 | 2025-08-28
(1 row)
n8n=# SELECT (NOW() AT TIME ZONE 'Europe/Istanbul')::date;
timezone
------------
2025-08-28
(1 row)
So in bash, it’s what it supposed to be.
But in n8n node, it’s different.
Now the other part (in n8n):
SET TIME ZONE 'Europe/Istanbul';
SELECT NOW()::date;
SELECT NOW()::date;
SELECT NOW()::date;
The result of this (in n8n):
[
{
"now": "2025-08-27T21:00:00.000Z"
},
{
"now": "2025-08-27T21:00:00.000Z"
},
{
"now": "2025-08-27T21:00:00.000Z"
}
]
And the result in postgres bash:
n8n=# SET TIME ZONE 'Europe/Istanbul';
SET
n8n=# SELECT NOW()::date;
now
------------
2025-08-28
(1 row)
n8n=# SELECT NOW()::date;
now
------------
2025-08-28
(1 row)
n8n=# SELECT NOW()::date;
now
------------
2025-08-28
(1 row)
But later I thought:
Maybe it’s because I have created the database (a month ago) before I set the timezone settings in docker, postgres, n8n, ubuntu etc. (1-2 days ago).