end_date is showing NaN.NaN.NaN

Hi,

I am trying to showing recurring custom box with Calendar in start_date and end_date. The end_date is showing Nan-Nan-Nan. Could you please help? The tool tip also shows Nan-Nan. Could you please provide suggestions?


$(document).ready(function(){
scheduler.config.multi_day = true;

		scheduler.config.event_duration = 30;
		scheduler.config.auto_end_date = true;
		scheduler.config.details_on_create=true;
		scheduler.config.details_on_dblclick=true;
		//scheduler.config.first_hour=8
		//scheduler.config.last_hour=17
		//tooltip
		scheduler.templates.tooltip_date_format=scheduler.date.date_to_str("%Y-%m-%d %H:%i");
		scheduler.templates.calendar_time = scheduler.date.date_to_str("%m.%d.%Y");
		//scheduler.config.repeat_date = "%m.%d.%Y";
		//icon_edit option is removed
		scheduler.config.icons_select=["icon_details","icon_delete"]; 
		scheduler.data_attributes = function(){
     	return [
     	   	["id"],
           	["primary"],
           	["backup"],
           	["start_date",scheduler.templates.xml_format],
           	["end_date",scheduler.templates.xml_format]
           ]
         }
		
		scheduler.locale.labels.section_primary = "Primary On Call:"; 
		scheduler.locale.labels.section_backup = "Backup On Call:";
	
			
		usersArray = getUsers()
		
		scheduler.config.lightbox.sections=[
			{ name:"primary", options: usersArray, map_to:"primary", type:"combo", image_path: "../../../dhtmlxcombo/codebase/imgs/", filtering: true },
			{ name:"backup", options: usersArray, map_to:"backup", type:"combo", image_path: "../../../dhtmlxcombo/codebase/imgs/", filtering: true },
			{ name:"recurring", height:115, type:"recurring", map_to:"rec_type", button:"recurring"},
			{ name:"time", height:72, type:"calendar_time", map_to:"auto"}	
			];
		
		scheduler.config.xml_date="%Y-%m-%d %H:%i";
		scheduler.init('scheduler_here',new Date(),"week");
		//scheduler.load({{events|safe}},"json");
		//alert({{events|safe}});
		scheduler.parse({{events|safe}},"json");
		
	});

Hello,

Are you using some kind of modified dhtmlxscheduler.js we’ve provided recently?

Kind regards,
Ilya

In case of FF9 - try to use
viewtopic.php?f=6&t=21950