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
Sorting by 'last hit' doesn't work for all date formats #48
Comments
So it looks like we have two choices:
I'm not sure which is best, but I'm leaning towards #1 |
I'd be happy with option 1, i'd prefer it to work even if the dates look a little wonky.. ;) |
The dates are just stored as a Which wouldn't normally be a problem, except that the DataTables script I use for displaying them apparently only understands and parses dates in US and ISO formats. So we either display the dates in a format that isn't what your locale prefers, or we can't sort them properly. There's a third option that I've used before, but it's hacky, and I want to avoid it. |
Was just having a look at that DataTables plugin - it does seem to take plugins for sorting dates in different formats (https://datatables.net/plug-ins/sorting/) - how hard would it be to load that in if the date format is dd/mm/yyyy? |
@khalwat DataTables allows to set a |
@carlcs yeah but I also need to put support in the db records to store this information, so that they are processed in the desired order |
Sorting redirects or statistics by 'Last Hit' doesn't seem to work properly for me, possibly due to the date format that I use in the admin being dd/mm/yyyy format.
Example of behaviour: https://cl.ly/iIOe
The text was updated successfully, but these errors were encountered: