I am trying to build a scheduler which specifies 2 weeks of half days but the next and previous buttons don’t seem to be doing the calculations properly and are giving me weird results. For example, when I click next it moves forward 13 days and then if I click back it goes back 7.
My timeline config below:
scheduler.createTimelineView({
name: 'timeline',
x_unit: 'hour',
x_date: '%A',
x_step: 12,
x_size: 28,
x_length: 14,
y_unit:
[ {key:1, label:"Section A"},
{key:2, label:"Section B"},
{key:3, label:"Section C"},
{key:4, label:"Section D"} ],
y_property: 'job_id',
render: 'tree',
round_position: true,
second_scale: {
x_unit: 'day',
x_date: '%D %M %d'
}
});