View Full Version : CalendarPanel Month display shows duplicate day

6 Oct 2010, 3:13 PM
Hi, I am testing the calendar Panel and I've found a problem with the Month display. In the month of October 2010 it repeats the day 9.
I've found the cause but I would like some suggestions for solving it.
The cause:

var d = new Date('10/09/2010'); //M/d/y for me!
document.write('<div>' + d + '</div>');
document.write('<div>' + d.add(Date.DAY,1) + '</div>');

The return is:
Sat Oct 09 2010 00:00:00 GMT-0300 (E. South America Standard Time)
Sat Oct 09 2010 23:00:00 GMT-0300 (E. South America Standard Time)

I'm from Brazil, my Windows XP language is English and its timezone set to (GMT -03:00 - Brasilia) and to "Automatically ajust clock for daylight saving changes".
If I turn down the auto adjust daylight saving thing It CalendarPanel works!
Does anybody know a good way to fix this error with the Date class. As I intend to run the same page in another countries.