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?
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
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan