In SimpleView, use filterString task.dueDate<NOW (NOW = Instant.now().toString().
this block falls back to string and checks if the dueDate String endswith NOW ...which is always false.
LESS -> { filter, actual ->
when (actual) {
is String -> actual.endsWith(filter.toString())
is Int -> actual < Integer.parseInt(filter.toString())
is Date -> actual.toInstant().isBefore(Instant.parse(filter.toString()))
is BigDecimal -> actual.subtract(BigDecimal(filter.toString())) < BigDecimal.ZERO
else -> actual.toString().endsWith(filter.toString())
}
Steps to reproduce
In SimpleView, use filterString
task.dueDate<NOW
(NOW = Instant.now().toString().this block falls back to string and checks if the dueDate String endswith NOW ...which is always false.
Fix: Add Instance conversion to
when