-
Notifications
You must be signed in to change notification settings - Fork 256
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
[bug]: Recent Date-Range fix is displaying the previous day instead of selected url date #329
Comments
I had this problem too. It has to do with how the dates are compared in the query. Basically on In order to fix this, you can adjust the "from" date to start at the beginning of the day and the "to" date to end at the end of the day:
So simply add these lines of code after:
|
i updated the also using sql to get date now const fromDay = from ? sql`to_date(${from}, 'yyyy-mm-dd')` : undefined
const toDay = to ? sql`to_date(${to}, 'yyy-mm-dd')` : undefined let me know if it works for you now |
If the website is up to date with the code, the error
If the website is up to date with the code, the error persists |
can you provide a reproduction link? |
Describe the bug
https://www.loom.com/share/b92de30f533e4b2bbdf3008811f566ea?sid=5d2f66f4-76bb-45a6-b389-388c2c1688ac
How to reproduce
Link to reproduction
https://table.sadmn.com/?page=1&sort=createdAt.desc&from=2024-05-08&to=2024-05-14
Additional information
No response
The text was updated successfully, but these errors were encountered: