Skip to content

Commit cf0366e

Browse files
authored
Merge pull request jbox-web#351 from RutSzymon/greater_than_current
Greater than the current date support
2 parents 56554e6 + 44488c7 commit cf0366e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ajax-datatables-rails/datatable/column/date_filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def range_start_casted
5555
end
5656

5757
def range_end_casted
58-
range_end.blank? ? Time.current : parse_date("#{range_end} 23:59:59")
58+
range_end.blank? ? parse_date("9999-12-31 23:59:59") : parse_date("#{range_end} 23:59:59")
5959
end
6060

6161
def parse_date(date)

0 commit comments

Comments
 (0)