Thanks that helped me a lot. However, it seem I haven’t the same source code as you. Even, when I create a new function with that, it doesn’t work.
Did I badly understand the procedure?
You need to put this function “scheduler.form_blocks.time.set_value” from the snippet before the settings of Scheduler (changing the source file is not good idea if you will update Scheduler).
Have you done it in such way?
Thanks you for your patience. I followed the code you gave me, I forgot put the function (“scheduler.form_blocks.time.set_value” ) thats why I’m getting an error.
Now, I haven’t error, but it’s still not working.
[code]scheduler.form_blocks.time.set_value = function (node, value, ev, config) {
var cfg = scheduler.config;
var s = node.getElementsByTagName(“select”);
var map = config._time_format_order;
var start_date, end_date;
nulledStart_date = scheduler.date.date_part(obj.start_date);
nulledEnd_date = scheduler.date.date_part(obj.end_date);
start_date = new Date(scheduler.date.add(nulledStart_date, 8, "hour"));
end_date = new Date(scheduler.date.add(nulledEnd_date, 19, "hour"));
nulledStart_date/nulledEnd_date are dates of the event with zero time part(hours, minutes). So you can add the required count of hours/minutes to make the initial values you want.