Calendar control shows duplicate dates

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Calendar control shows duplicate dates

Roger L
I have a visual web app running in NB 6.7.1 that uses the Woodstock calendar control. When the month is set to November 2009, the control displays November 1 twice. Which then throws off the entire calender with respect to the day of the week for any given date.

I suspect this has something to do with daylight saving time, which reverts to standard time on November 1.

An example of the problem can be seen at http://webdev2.sun.com/example/faces/calendar/calendar.jsp 
Set the month to November and observe that November 1 shows up as Sunday and Monday.

Any help would be appreciated.

The jsp for the control is as follows:

<webuijsf:calendar binding="#{AddRequest.startDateCal}" id="startDateCal" selectedDate="#{SessionBean.startDate}"
style="font-family: 'Arial','Helvetica',sans-serif; font-size: 14px; font-style: normal; font-weight: bold; left: 280px; top: 232px; position: absolute" tabIndex="3"
validatorExpression="#{AddRequest.validateStartDate}"/>