-
Notifications
You must be signed in to change notification settings - Fork 19
Description
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" />