primefaces calendar: wrong date entry

后端 未结 8 831
心在旅途
心在旅途 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:31

    I have just added the following parameter in web.xml and the issue is fixed. I didn't include any command like -Duser.timezone=UTC while starting the server, still its fixed the issue.

    javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE true

    Regards Khaleel

提交回复
热议问题