datepicker filter with strange behavior #1658
LuizSilva2714
started this conversation in
BUG
Replies: 1 comment
-
Just to inform you, I’m investigating and trying to find the cause of the problem. I suspect the issue occurs when Livewire tries to dehydrate the table data. Below, you’ll find a screenshot of how Laravel initially receives the filter values and, in the following one, how Livewire is sending the request. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a table with a date column called "vencimento." When trying to use a datepicker filter for this column and attempting to move to the second page, I noticed two peculiarities:
When filtering for the first time, the two values returned by the filter are Carbon objects. From the second page onward, it returns two strings.
From the second page onward, for some reason, it adds 3 hours to the final date returned by the filter. For example, if I select "2024-08-30 00:00:00" as the start date and "2024-09-05 23:59:59" as the end date, starting from the second page, the end date is increased by 3 hours, becoming "2024-09-06 02:59:59."
I am using Laravel version 10.31.0, Livewire version 2.12.8, and PowerGrid version 4.9.8.
Do you know how I can fix this? Could you please help me?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions