melistik / vaadin-grid-util

simplify the use of vaadin's grid and add features
https://vaadin.com/directory/component/gridutil
MIT License
32 stars 21 forks source link

Date filter with a resolution finer than DAY ignores the hours/minutes/seconds #40

Open rsivan opened 7 years ago

rsivan commented 7 years ago

I created a Date filter and then modified it as follows: RangeCellFilterComponent<DateField, HorizontalLayout> fg = filter.setDateFilter(colId); DateField df1 = (DateField) fg.getSmallestField(); DateField df2 = (DateField) fg.getBiggestField(); df1.setResolution(Resolution.SECOND); df2.setResolution(Resolution.SECOND); This change enables showing hours, minutes and seconds in the filter widget but the user selection is ignored for hours, minutes and seconds. I believe the fixTiming method is the reason for the problem. Thanks.

melistik commented 7 years ago

should work with new version 2.1.0 please check