Event Rendering

I searched for a solution for this.

I’m writing a Scheduler using MySQL. I can enter an event and drag it to any duration within the day. When I refresh the page it loads and displays as only one hour in duration. The time is still displayed correctly (e.g. 9:00 to 12:00), however.

What am I missing to have the event draw to its appropriate length?

Thanks

the time is a data give in answer of ur request in sql.

the render is about the configuration of your scheduler.

u should verify your format date.

Must be something in scheduler’s configuration.
With default settings event rendering must work correctly

If issue still occurs - please provide code of scheduler configuration, or demo link | sample where issue can be checked.

Ferosinge is exactly correct. The time is being written in 12hr format into the db. Nearly all my tests crossed the 12pm mark, so the schedule figured I was going back in time and drew the minimum length of 1 hour.

I tracked the problem down to the config line below.

In function init()

I changed:
scheduler.config.xml_date="%Y-%m-%d %h:%i";
to
scheduler.config.xml_date="%Y-%m-%d %H:%i";

and the issue was resolved.

Thanks!

Mario