primefaces 3.4, p:schedule 显示错误日期的事件 [英] primefaces 3.4, p:schedule showing events on wrong dates
问题描述
我正在使用 primefaces 的 p:schedule 组件.我从数据库中获取事件日期.事件日期(来自数据库)采用 MM/DD/YYYY 格式,如下所示:04/05/201204/12/201204/19/201
但是当 Schedule 在页面上绘制时,事件显示在以下日期:
04/04/201204/11/201204/18/2012
我正在使用以下代码段
<p:schedule value="#{fileSubmissionBean.scheduleModel}"纵横比=3"slotMinutes="60"draggable="false"/>
任何帮助都是适当的
需要在Primefaces的Schedule控件中设置timeZone,才能正常工作.
试试这个
<p:schedule value="#{fileSubmissionBean.scheduleModel}"纵横比=3"slotMinutes="60"可拖动=假"时区=UTC"/>
您可以在此处查看详细信息 PrimeFaces 组件计划详情
I am using p:schedule component of primefaces. I getting the events date from Database. The event dates (that are coming from database) are in MM/DD/YYYY format and as following: 04/05/2012 04/12/2012 04/19/201
but when Schedule draws on page, the event are shown on following dates:
04/04/2012 04/11/2012 04/18/2012
I am using the following snippet
<p:schedule value="#{fileSubmissionBean.scheduleModel}"
aspectRatio="3"
slotMinutes="60"
draggable="false"/>
Any help is appriciable
You need to set the timeZone in Schedule control of Primefaces, then it works fine.
Try this
<div class="row rowSpace">
<p:schedule value="#{fileSubmissionBean.scheduleModel}"
aspectRatio="3"
slotMinutes="60"
draggable="false"
timeZone="UTC"
/>
</div>
You can have look here for Details PrimeFaces component Schedule Details
这篇关于primefaces 3.4, p:schedule 显示错误日期的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!