Schedule: Date Move, Day Delta Issue
Schedule Component is not calculating right Day Delta always.
I am using following configuration for my schedule
<p:schedule value="#{schedule_setup.eventModel}" id="customSchedule" widgetVar="customSchedule"
timeZone="IST"
view="agendaWeek">
<!--ignoreTimezone="false"-->
<!--timeZone="GMT+530"-->
<p:ajax event="dateSelect" listener="#{schedule_setup.onDateSelect}"
update="schedule_detail_form"/>
<p:ajax event="eventSelect" listener="#{schedule_setup.onEventSelect}"
update="schedule_detail_form" process="@this"/>
<p:ajax event="eventMove" listener="#{schedule_setup.onEventMove}" update="customSchedule growl"/>
<p:ajax event="eventResize" listener="#{schedule_setup.onEventResize}" update="customSchedule growl"/>
</p:schedule>
Here while moving schedule days in adjacent weekdays as shown in screenshot.
-
Initial State

-
Expected State before Drag-Drop ends

-
Actual State, Post Drag-Drop(Event Move)

During debug, I found issue in Day Delta value as shown in below screenshot

Do you have a fix proposed?
+1 for this.
It is still an issue.
Feel free to fix it an provide a PR ;)
Fixed with PR: https://github.com/primefaces/primefaces/pull/3991