Hi, I have a problem choosing October 18th 2009, it returns October 17th 2009 when I call the getFormatedDate() function.
It happens with the samples too in this link, for example:
dhtmlx.com/docs/products/dht … ndex.shtml
Tks.
Rafael Lima
Hello,
is the issue still actual ?
Locally it wasn’t reproduced.
Yes, when I use Mozilla Firefox 3.5, this problem still happening.
When I click on the calendar choosing Oct 18th, appears Oct 17th, in the website samples too.
My locale configuration is set with Portuguese-Brazil(Pt_br).
Tks.
We have tested samples with the mentioned locale. This issue still isn’t reproduced.
Could you please provide some details:
- the direct link to the sample from our website
- how to recreate the issue
- does the problem occur only with Oct 18th date (or other dates) ?
Hi, Im sending an attachment with an image from your website.<br><br>Maybe it
s a problem with javascript date format, cause it happens with another dates, always in October.
October 18th 2009
October 19th 2008
October 21th 2007
I believe thats a problem with Pt_br format, because you don
t reproduce this issue locally.
Tks.
Hi, I solve the problem changing this function in dhtmlxcalendar.js.
cutTime:function(date) {
date = new Date(date);
var ndate = new Date(date.getFullYear(), date.getMonth(), date.getDate(),1,1,1,1);
return ndate;
}
For some reason, maybe UTC, when I put new Date using hour, minute and second, solve the problem.
Thanks.
Hello,
thank you very much for the provided solution. We will include it into the official version of dhtmlxcalendar.