primefaces icon indicating copy to clipboard operation
primefaces copied to clipboard

Schedule: Date Move, Day Delta Issue

Open mayankX opened this issue 9 years ago • 4 comments

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.

  1. Initial State image

  2. Expected State before Drag-Drop ends image

  3. Actual State, Post Drag-Drop(Event Move) image

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

mayankX avatar Apr 20 '17 20:04 mayankX

Do you have a fix proposed?

melloware avatar Apr 22 '17 00:04 melloware

+1 for this.

It is still an issue.

mbeedub avatar Aug 20 '18 18:08 mbeedub

Feel free to fix it an provide a PR ;)

tandraschko avatar Aug 20 '18 18:08 tandraschko

Fixed with PR: https://github.com/primefaces/primefaces/pull/3991

melloware avatar Aug 25 '18 17:08 melloware