<p:schedule> wrong timeFormat with PrimeFaces 5.0

不羁岁月 提交于 2019-12-11 09:41:16

问题


I upgraded my PrimeFaces version 4.0 to 5.0 and now the timeFormat in my <p:schedule> is not correct.

In 4.0, each event in the calendar had this timeFormat : 3:00 - 5:00.

For this I have timeFormat="HH:mm{ - HH:mm}"

I don't change anything and then, with 5.0, I have 3:00 -.

Moreover the start date and end date are not corrects too. I have two hours less than expected.

Anyone else have this issues ?


回答1:


I have just tried your timeFormat and it works for me! For set up correctly start date, just add to <p:schedule> this parameter:

ignoreTimezone="false"

Otherwise I suggest you to take a look to this answer: primefaces calendar wrong date entry

I hope this would be helpful to you.



来源:https://stackoverflow.com/questions/23884636/pschedule-wrong-timeformat-with-primefaces-5-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!