-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Wrong sorting order by Date/Time type column #2108
Comments
Mb it will help: the rows containing "00:00" were created using Date Picker. Others – using |
Hey all, I've just checked using Repeater unformatted Date/Time field values: Values saved using Values saved using Data Picker component: That's why sorting order does not work.. Could you please fix it? Thank you. |
Hi @shogunpurple @aptkingston please take a look at the following example of Flatpicker value behavior:
Everything seems okay, but actually not...
Sorting and calculations starts working correctly for Date/Time fields with binding values from Flatpicker only after manual correction/edit the value using builder Edit Row. Current Version: 0.9.109 |
It's interesting that the Default value and Custom Validation functionality works fine with the Flatpick. just tested with |
I can confirm that this is still an issue. My steps
DateB appears as a random, incorrect date in the Edit screen (though appears correctly in the table component) tested on version |
I am having this same issue. when saving a {{now}} or when saving a user-selected date it pushes date time out exactly 7 hours like the time zone is messed up or something. |
I'll have a look at this 👍 |
@aptkingston Thank you. An update on the symptoms I have found. |
@KernOil I think this is just a difference of how the dates are being parsed. We save our dates as ISO strings, which are always denoted in UTC (as highlighted by the This is the reason your calculated dates appear wrong in Budibase - we will be parsing them as ISO strings and accounting for the UTC timezones, which is why we are showing them as some hours in the future, because that's the real value of the calculated dates. |
@aptkingston ok this makes sense to me, however, I do not understand where my time gets messed up. I'm assuming it is the way/format of my SQL table? I'm using timestamp as my datatype should I be using something different? Testing it today the default {{now}} function will save the correct date and time to my SQL but if I input a time it will give me +7 hours in my SQL table. the internal table works correctly both ways. is it possible there is a bug in the SQL connector? here is a video of what I'm seeing Date.Test.mp4 |
Hey all,
Sorting order works incorrectly with Date/Time type columns, across whole platform.
Few examples ("Updated" is Date/Time type filed I created):
Current Version: 0.9.79
The text was updated successfully, but these errors were encountered: