< p:schedule> PrimeFaces 5.0使用错误的timeFormat [英] <p:schedule> wrong timeFormat with PrimeFaces 5.0

查看:105
本文介绍了< p:schedule> PrimeFaces 5.0使用错误的timeFormat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将PrimeFaces版本4.0升级到5.0,现在<p:schedule>中的timeFormat不正确.

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

在4.0中,日历中的每个事件都具有以下timeFormat:3:00 - 5:00.

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

为此,我有timeFormat="HH:mm{ - HH:mm}"

我什么都没做,然后在5.0版本中,我有了3:00 -.

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 ?

推荐答案

我刚刚尝试了您的timeFormat,它对我有用! 为了正确设置开始日期,只需将<p:schedule>添加到此参数:

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"

否则,建议您查看以下答案: primefaces日历错误的日期输入

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

我希望这会对您有所帮助.

I hope this would be helpful to you.

这篇关于&lt; p:schedule&gt; PrimeFaces 5.0使用错误的timeFormat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆