primefaces calendar: wrong date entry

后端 未结 8 860
心在旅途
心在旅途 2021-02-07 21:49

Using jsf 2.2.0.

For all the date, it seems to remove one day. When I click on 8 nov, it displays 11/08/2011. But then it stores Nov 7, 2011 in my Date field in my manag

相关标签:
8条回答
  • 2021-02-07 22:42

    Have you tried to set the timezone and locate attribute? Otherwise, you can create a converter object that converts the date. This is a tutorial to create a custom converter: http://www.roseindia.net/jsf/customconverter.shtml

    0 讨论(0)
  • 2021-02-07 22:52

    I'm using Wildfly 8 and PF 5.0.RC1 and the only thing that did the trick for me was setting the Timezone of the calendar to nothing...

    <p:calendar timeZone = "" />
    

    Don't know if this is a proper solution, seems more like a workaround, but it worked fine locally and deployed.

    0 讨论(0)
提交回复
热议问题