While creating or updating events with day number less then 12, day number and month number become replaced in start_date and end_date for SOME events. It is so just for 15-20% of all created events, not total.
Scheduler localization set to Localizations.Russian
What could be the reason?
Did anyone faced this situation?
Searching view-source I’ve found the next code, added by scheduler compiler.
[code] dp.attachEvent(‘onAfterUpdate’, function (s_id, action, t_id, node) {
if(action == ‘inserted’ || action == ‘updated’){
var ev = scheduler.getEvent(t_id);
for(var i = 0; i < node.attributes.length; i++){
var attr_name = node.attributes[i].name;
if(attr_name.indexOf(‘dhx_’) != 0)
continue;
var property_name = attr_name.replace(‘dhx_’, ‘’);
if(ev[property_name] instanceof Date || property_name == 'start_date' || property_name == 'end_date'){
ev[property_name] = scheduler.templates.xml_date(node.attributes[i].value);
}else{
ev[property_name] = node.attributes[i].value;
}
}
scheduler.updateEvent(t_id);
}
});
[/code]
Could templates.xml_date conversion be the reason?