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

Seconds attribute for DateFilter is incorrect #25

Closed HapkiFighter closed 7 years ago

HapkiFighter commented 8 years ago

instead of calendar.set(Calendar.SECOND, beginning ? 0 : 99); it should be calendar.set(Calendar.SECOND, beginning ? 0 : 59); since there are only 59 seconds in a minute.

I get an error on my filter where if the biggest date is a day before the current date, it will show the current date entry. ex. if biggest date is Oct 6, then it will show entries with the timestamp less than or equal to Oct 7 00:00:39 which is incorrect