-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Wait Node): Account for workflow timezone in Wait node datetime #8578
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh this does not seem to be actually solving the problem. Actually it's starting to look worse 😅
waitTill = new Date(new Date().getTime() + waitAmount); | ||
const original = new Date(new Date().getTime() + waitAmount); | ||
|
||
waitTill = DateTime.fromISO(original.toISOString().slice(0, -1)).toUTC().toJSDate(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth considering moving the toUtcDate
to the nodes package as well as its tests? WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I just tested it now, and it looks real bad. It now takes into account the timezone, so it seems it startec picking up America/New York
so instead of my workflows waiting 10 minutes, they now way 5 hours and 10 minutes, which is even worse 😓
But to make things even more interesting, I changed the workflow's timezone, and it's also being completely ignored.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate? This is how I tested:
- Selected 12:00 with workflow set at UTC-5 → Stored as 17:00 UTC in DB
- Selected +2h with workflow set at 10:40 UTC-5 → Stored as 17:40 UTC in DB
These are what I'd expect to be correct. What am I missing?
|
||
waitTill = new Date(dateTime); | ||
waitTill = DateTime.fromFormat(dateTimeStr, "yyyy-MM-dd'T'HH:mm:ss", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix timezone only for specific points in time, where 4pm is something in UK vs Berlin.
✅ All Cypress E2E specs passed |
2 flaky tests on run #4102 ↗︎
Details:
5-ndv.cy.ts • 1 flaky test
13-pinning.cy.ts • 1 flaky test
Review all test suite changes for PR #8578 ↗︎ |
Got released with |
…8578) Co-authored-by: Omar Ajoue <[email protected]>
https://linear.app/n8n/issue/PAY-1341