Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defining date formatter for a column associated with LocalDate field leads to ClassCastException #3272

Open
glebfox opened this issue May 27, 2022 · 0 comments
Assignees
Labels
type: bug Something isn't working

Comments

@glebfox
Copy link
Member

glebfox commented May 27, 2022

Case:

  1. Create an entity with LocalDate field
  2. In the browser screen descriptor add a formatter for a corresponding column
<column id="startTime">
    <formatter class="com.haulmont.cuba.gui.components.formatters.DateFormatter" type="DATETIME" format="yyyy-MM-dd HH:mm:ss" useUserTimezone="true"/>
</column>

AR:
ClassCastException: class java.time.LocalDate cannot be cast to class java.util.Date (java.time.LocalDate and java.util.Date are in module java.base of loader 'bootstrap')

@glebfox glebfox added the type: bug Something isn't working label May 27, 2022
@glebfox glebfox self-assigned this May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant