Formatter with LocalDateTime


how to best solve a problem. I’m having a LocalDateTime entity attribute, that I would like to display in a GroupTable column and format using DateFormatter, so it can display with useUserTimezone.
(server time is UTC, it needs to remain like that)

<column id="startTime">
    <formatter class="com.haulmont.cuba.gui.components.formatters.DateFormatter" type="DATETIME" format="yyyy-MM-dd HH:mm:ss" useUserTimezone="true"/>

It throws
ClassCastException: class java.time.LocalDateTime cannot be cast to class java.util.Date (java.time.LocalDateTime and java.util.Date are in module java.base of loader 'bootstrap')
and during my search seems like that the DateFormatter wants DateTime , not LocalDateTime.


Some related issue, can this be done somehow for a GroupTable column?


Thank you for reporting the problem. I’ve created a GitHub issue.