Rest query on LocalDate possible bug

how to make rest query to LocalDate. I have this example where some_LocalDate is LocalDate which allways thows exeption duw to toInstant conversion

Params in request:

<query name="findDoprava" entity="doprava_Doprava" view="doprava-view">
        <jpql><![CDATA[select e from doprava_Doprava e
        left join e.klient k
        left join e.ponuka p
        e.some_LocalDate > :datumOd
        and e.some_LocalDate < :datumDo
        and e.master_lock = true
        and = :klient
        and = :ponuka
        order by e.date_of_change ASC]]></jpql>
            <param name="datumOd" type="java.util.Date"/>
            <param name="datumDo" type="java.util.Date"/>
            <param name="klient" type="java.lang.Integer"/>
            <param name="ponuka" type="java.lang.String"/>

Exception thrown:

java.lang.UnsupportedOperationException: null
	at java.sql/java.sql.Date.toInstant( ~[java.sql:na]
	at com.haulmont.cuba.core.sys.QueryImpl$Param.convertValue( ~[cuba-core-7.2.7.jar:7.2.7]
	at com.haulmont.cuba.core.sys.QueryImpl$Param.apply( ~[cuba-core-7.2.7.jar:7.2.7]
	at com.haulmont.cuba.core.sys.QueryImpl.getQuery( ~[cuba-core-7.2.7.jar:7.2.7]
	at com.haulmont.cuba.core.sys.QueryImpl.getResultList( ~[cuba-core-7.2.7.jar:7.2.7]
	at ~[cuba-core-7.2.7.jar:7.2.7]
	at ~[cuba-core-7.2.7.jar:7.2.7]

Have you tried to define the parameter as LocalDate?

<param name="datumOd" type="java.time.LocalDate"/>

Yes, it will also throw exception.

Thank you for reporting the problem.
It’s already registered: Support for Java 8 Date/Time API in parameters · Issue #125 · cuba-platform/restapi · GitHub, we’ll implement it for one of the next CUBA bugfix releases.