Skip to content

<mp:datePicker /> value is evaluated wrong #8

@liquidxtc13

Description

@liquidxtc13

After picking a date with <mp:datePicker /> the correct date is displayed in the input field. But after saving and reloading the page, the month is alway displayed as '00' and the date is decreased by one. For example: After clicking today, the input field reads: "18.05.2016" - as desired. After saving and reloading the page the input field reads: "17.00.2016". I tried this with several dates and months. The date is always decreased by one and the month is always displayed as "00". The year is displayed correctly.
I checked Firebug after selecting the date (e.g. 18.05.2016). The value-tag of the rendered input field reads <input id= [...] value="17.00.2016"></input>

The exact element I'm using:
<mp:datePicker value="#{bean.entity.date}" pattern="dd.mm.yyyy" />

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions