Error in Calendar on the 31st day of the month

Hello there,
we are having some issues with the calendar component in the 31st day of the month. In that day (for the months that do have 31 days), when you pick a date in the calendar for a month that does not have 31 days, the selected date goes to the wrong month, picking one in advance.

For example: on august 31st (3 days ago, when we found this issue), if I selected the date September 12th in the calendar it would set the date to October 12th.

Looking at the source, it seems that the problem is that the calendar component get the current date first and then sets the month and afterwards the day. So, in the example, the current date would be 08/31/2012 and the set month would change it to September: 09/31/2012. Since September doesn’t have a 31st day, the javascript sets the date to 10/01/2012. Afterwards the script sets the date correctly to the 12th, returning the date of 10/12/2012.

Please take a look at this error.
We are using the calendar version 3.0



are you using the latest Calendar ? The similar problem was fixed in new version.