Set end time period to 24:00

I need to be able to set a Time Period that will end at Midnight or 24:00.

I am using the scheduler to send specified start and stop times as well as the date to a controller that controls lights as well as HVAC. Thus I need the ability to have lights turn on or off anywhere from 00:00 to 24:00 but I cannot seem to figure out how to adjust the Time Drop Down box in the lighbox to go from 00:00 to 24:00.

Sidenote: I found that if I set scheduler.config.time_step=1 I do get a time frame of 0:00 - 23:59. However, I would prefer to set the time_step to 15 but doing so gives me a timeframe of 0:00 p 23:45. I need 0:00 - 24:00.

Thanks for any help or input.

Just a point of clarification. The scheduler is being used as a Front-End entry point for an operator to select a specific day and enter a time-frame. I don’t need to connect to a back-end DB or anything.

The operator can enter as many entries as he/she wishes. When they click the Save button the days and associated times are formated and sent to a controller which as mentioned runs lighting and in some cases an HVAC system.

The controller recognizes a timeframe of 00:00 - 24:00 as one full day. There are times that we may need to override lights and keep them turned on from 16:00 - 24:00 however I can’t seem to figure out how to change the time picker to go up to 24:00. I am thinking I may need to modify the .js file but am not sure exactly what I need to change.

Any ideas, help, input, etc would be greatly appreciated…

Existing time picker uses 00:00 of the next day instead of 24:00 hours

You can locate the next line in scheduler.js

var last = 24*60, first = 0;

and try to replace it as

var last = 24*60+15, first = 0;

not quite sure, that it will not cause any side-effects


Sorry for the late response…got pulled off onto another project. Thanks for the input however, I went through the dhtmlxscheduler.js file and could not locate var last = 2460. I did find several referneces to 2460 but nothing with "var last = ".

I am using Scheduler version 2.3 and it is minified.

Thanks again.,

The original code look as

time:{ render:function(){ //hours var cfg = scheduler.config; var dt = Date()); var last = 24*60, first = 0;

In the final version or var names (cfg, dt, last ) will be replaced , but “time:{ render:” must still be there.