So, both on the N8N side and on the server side, you have the right time zone as shown in the prints.
But I realize that the universal time is 3 hours longer.
I even wonder if n8n isn’t considering universal time instead of local time.
Note 1: This error only happens in n8n queue mode. In regular mode the timezone works correctly.
Note 2: The schedule trigger is also working perfectly with local time. This problem is only occurring when the execution enters Waiting mode through the WAIT node.
@hugoperes Yep, you just found your answer! You’ll need to set GENERIC_TIMEZONE to the timezone you want your n8n instance to be. Fix that up, and your next run of that workflow should fire off when you expect it to.
I’d suggest setting that env variable for your workers, and ensure that your database also has the correct timezone set. There’s been issues in the past when they don’t match.
@hugoperes I was taking a look into this with @MutedJam - this looks like it might be a bug with how the date is displayed in the UI with the execution list, but the database etc. all have the correct timezone. We’re going to take a closer look at this tomorrow to test a little bit more, but it looks like we’re seeing the same as you at the moment.
Note: In the node schendule, scheduling works at the right time. The problem is occurring only in the Wait node, whether it is scheduling in Time Interval or specific time.
Just in the meantime until we have looked into the bug further (and the team can fix said possible bug), if you set the server timezone to UTC you wouldn’t encounter this problem. I know this isn’t ideal at all, we were just testing around trying to see how we could possibly unblock you at this point in time.
You could also set your local TZ environment variable on your computer to UTC, and that might work too. You can do this:
- GENERIC_TIMEZONE=America/Sao_Paulo
- TZ=UTC
You can find a brief description on what that TZ variable does here. The advantage of this would be that you don’t need to change the OS time.
That was the only current workaround we could find in all of our testing. We’ll also resume testing tomorrow and alert the developers if we can’t find a solution
Hi @hugoperes - I just wanted to let you know that after further testing this is still reproducible, so we’ve added this to our bug tracker. I’ll let you know if and when I have an update on this!