Skip to content
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

Timezone issues #10

Open
yuvalt opened this issue Feb 4, 2025 · 1 comment
Open

Timezone issues #10

yuvalt opened this issue Feb 4, 2025 · 1 comment

Comments

@yuvalt
Copy link

yuvalt commented Feb 4, 2025

I tried to integrate it into my code today and even though I enqueued tasks, they were never processed. Looking at the code, it seems that you're running into time zone issues. When you insert data, you use new Date() but when you dequeue, you filter with NOW(). I recommend you switch your dequeue to use new Date() instead of NOW() to resolve this, so there is consistency. Thanks for a very nice library!

PS: I did see the alignTimeZone option, but IMHO it's too intrusive to change the database time zone (I assume that's why you implemented it).

@yuvalt
Copy link
Author

yuvalt commented Feb 6, 2025

PR created: #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant