start time in day and week view

in my day view, my time starts at 12am and end at 11pm

1.i have a data in database which is start time is 12am and ends at 12am, when i view the day tab and week tab it occupy the whole calendar(from top to bottom).

  1. i add this code to change my start date and end date to put the 12am in the middle of the time:
    scheduler.config.first_hour = 8;
    scheduler.config.last_hour = 32;

my view now starts at 8am upto 7am
but i cant see now the data.

please help.

scheduler.config.last_hour = 32;

should be 23.

if i change it to:
scheduler.config.first_hour = 8;
scheduler.config.last_hour = 23;

my start time is 8am and end time is 10pm, thats why i put 32 to show 8am upto 7am

please help…

Scheduler will not work correctly with such configuration options, it can’t show more than one day in day or week view.

let say this is my configuration : scheduler.config.first_hour = 0;

how can i prevent not to occupy the whole day tab if my start time is 12:00am?

is there a way in this case that the event is on the 12:00 layer only and not to occupy the whole day tab?

help please…

So, you have an event which starts at 0 and ends at 24 and you want to show it on the day tab, or do you mean some other scenario ?

yes i have an event which start at 0 and end at 24… im wondering that why is it occupy the whole scheduler(from top to bottom). since my event for example starts at may 24, 12:00am and end also at may 24, 12:00am. it occupy the whole scheduler…

By default , such events are counted as multi-day and rendered in different way.
You can use
scheduler.config.multi_day = true;
to enable rendering of multi-day events.

If you need to render them not separately, but the same as normal timed event, you can redefine is_one_day_event method of scheduler

scheduler.is_one_day_event=function(ev){ return true; }