When clicked jumps to Oct-2016

Code that sets calendar from AJAX call:

window1.forms[loop2].getInput(name).value=tmp; if (tmp!="") window1.forms[loop2].getCalendar(name).setFormatedDate("%y-%m-%d %H:%i:%s",tmp);

Input box looks like:
2015-12-22 00:00:00

Click on it, it jumps to:


I tried setFormatedDate, setDate, etc. no difference. tmp is “2015-12-22 00:00:00”.

  • I do not remember why I am setting getInput() - but it was needed, I think to handle “” for the date/time. I have commented out, it is not at fault for this bogus 2016-10-12 date.

** Running latest code, downloaded hour ago - older code from month ago does this too.


Could you please provide us complete demo including all correspondnig js/css files?
Please also add information regarding current and expected behaviour.

Here is a small guide how to make a complete demo:
docs.dhtmlx.com/tutorials__auxil … pport.html

If you’re using PRO Edition please send your demo to support@dhtmlx.com