Author: pyaschenko
Date: 2007-10-05 07:57:31 -0400 (Fri, 05 Oct 2007)
New Revision: 3278
Modified:
branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
RF-1075
Modified:
branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
---
branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-10-05
11:54:26 UTC (rev 3277)
+++
branches/3.1.x/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-10-05
11:57:31 UTC (rev 3278)
@@ -337,7 +337,7 @@
}
function daysInMonthByDate(date) {
- return 32 - new Date(date.getYear(), date.getMonth(), 32).getDate();
+ return 32 - new Date(date.getFullYear(), date.getMonth(), 32).getDate();
}
function getDay(date, firstWeekDay ) {