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

range_date filter with bootstrap-datetimepicker date format issue (moment_date_format) #524

Closed
Vatvat99 opened this issue Dec 6, 2018 · 1 comment

Comments

@Vatvat99
Copy link

Vatvat99 commented Dec 6, 2018

I'm unable to make the range_date filter of yadcf to work. I'm using it with datatables.net.

I'm using this date format for the original data passed to datatable : YYYY-MM-DDTHH:mm.
And I'm using this format to display the date in the datetime-picker : DD/MM/YYYY.

I have looked inside the yadcf plugin to see what it does, and it seems to get the row date from the original value passed to datatable (which in my case is in this format : 'YYYY-MM-DDTHH:mm') and read it with the format provided in moment_date_format. Then it compares this date with the ones in the range filter, those dates are in this format : 'DD/MM/YYYY', but yadcf still reads it with the format provided in moment_date_format.

Here is the jsfiddle which demonstrate the problem : http://jsfiddle.net/vatvat99/go5mxw0d/32/

Thanks for your help.

@vedmack vedmack changed the title range_date filter with bootstrap-datetimepicker date format issue range_date filter with bootstrap-datetimepicker date format issue (moment_date_format) Dec 12, 2018
vedmack added a commit that referenced this issue Dec 12, 2018
#522 - Selectize bug (initSelectPluginCustomTriggers 'select_type': 'custom_select' )
#524 - range_date filter with bootstrap-datetimepicker date format issue (moment_date_format)
@vedmack
Copy link
Owner

vedmack commented Dec 12, 2018

fixed in 0.9.4.beta.11 (npm beta module not updated yet)

@vedmack vedmack closed this as completed Dec 12, 2018
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

2 participants