Limit End Bug

Hi,

I need to limit a timeline schedule, and when i use limit_end at 23:59:59, I can´t fire a new event in 23:45 or after.

What´s wrong? I´m from Brazil, could be the timezone?

My code:

scheduler.init('scheduler_here',new Date(2012,3,2),"timeline");
scheduler.config.limit_start = new Date(2012,3,2,0,0);
scheduler.config.limit_end   = new Date(2012,3,4,23,59,59);
scheduler.config.limit_view  = true;

In attached image, I show how is my schedule.


Hello,

Try using
scheduler.config.limit_end = new Date(2012,3,5);

Yes, and default end date would be 24:00 and that’s 1 second past your limit, can’t happen.

Kind regards,
Ilya

Hi Ilya,

Thanks for fast reply.

Well, if I use scheduler.config.limit_end = new Date(2012,3,5);, my timeline schedule will show the date 04/05/2012. And I don´t want to show this date.

How can I disable the next button to don´t show the date 04/05/2012 in this case?

Thanks

Hello,

What timeline displays is controlled by timeline settings. What settings do you use?

Kind regards,
Ilya

Hi Ilya,

It´s my code:

scheduler.config.details_on_create=true;
scheduler.config.details_on_dblclick=true;
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.config.collision_limit = 1;

scheduler.blockTime(0, [0,12*60]);
scheduler.blockTime(1, [0,12*60]);
scheduler.blockTime(2, [0,12*60]);
scheduler.blockTime(3, [0,12*60]);
scheduler.blockTime(4, [0,12*60]);
scheduler.blockTime(5, [0,12*60]);
scheduler.blockTime(6, [0,12*60]);

scheduler.createTimelineView({
			name:	"timeline",
			x_unit:	"minute",
			x_date:	"%H:%i",
			x_step: 15, 
			x_size: 45, 
			x_start: 52, 
			x_length:	96, 
			y_unit:	sections,
			y_property:	"section_id",
			render:"bar",
			section_autoheight: false, 
			dy:60, 
			dx:80 
		});

Thanks

Hello,

x_size: 45, 

it should be 44
44+52=96

Kind regards,
Ilya