Our pure JavaScript Scheduler component


Post by deleepa »

Bug creation flow.

  1. Go to week view/ work week view in scheduler
  2. Double click in scheduler or right click and click new appointment.
  3. Check the start time and end time in the popup.

The issue:
The start time is not 4am 10/10/2022 but 2am 11/10/2022. The end date is 4am 10/10/2022 but should be 6am 11/10/2022.

The day view works fine, this issue appears when the view is changed from day view to week view.

Attachments
pic 2.png
pic 2.png (61.05 KiB) Viewed 266 times
pic 1.png
pic 1.png (15.09 KiB) Viewed 266 times

Post by alex.l »

Hi deleepa,

Go to week view/ work week view in scheduler

Is it your custom created ViewPreset? If so, could you please send me full config, so I will be able to debug it.
Do you see that bug in our inline examples? Let's say, here https://bryntum.com/examples/scheduler/basic/
If so, please type in console scheduler.zoomLevel and send me back a number, I will know what viewPreset is this. Right now I can't find it, also because of custom language which I don't understand ))

All the best,
Alex


Post by deleepa »

Hi Alex, I have attached a TS file below which has the daily custom view where the mentioned behaviour works and a custom weekly view preset where the expected behaviour does not work.

To summarise the issue once more, if it's not clear, we are setting a custom duration in the planner so that appointments/events created via double click or right click and click on new will be created with that custom duration. This behaviour works fine in the day view preset. But when it comes to the weekly view preset, it does not work.

The URL (https://bryntum.com/examples/scheduler/basic/), where creating an appointment by double clicking works, but with a default duration of 24 hours; this also works in our custom week view preset, but we need it to work with the custom duration we set in the planner.

File link: https://drive.google.com/file/d/1Mauytl3CufLObVcn_Ipw1VWr3A3FNbSj/view?usp=sharing

Thanks in advance!


Post by alex.l »

we are setting a custom duration in the planner so that appointments/events created via double click or right click and click on new will be created with that custom duration

So how did you set that custom duration? Ans what duration did you set? Please share all related code. I used the code you shared and I see no problems, I guess I need to do something else, but not clear what.

All the best,
Alex


Post Reply