GWT CalenderPanel does not show March 31st for year 2013, when TimeZone of 
the System where web application is accessed is GMT + 01:00. 

Please refer to screen shot.. 

GWT CODE: 

 private void showDateCalendar() {
        Date dt = new Date();
        FlexTable fTable = new FlexTable();
        fTable.setBorderWidth(1);
        final CalendarPanel cal = new CalendarPanel(dt);
        Label nextMonth = new Label(">");
        nextMonth.setStyleName("gwt-Label-link");
        Label nextYear = new Label(">>");
        nextYear.setStyleName("gwt-Label-link");
        cal.setMonthNames(monthNamesArr);
        cal.setWeekDayNames(dayNamesArr);
        cal.redraw();
        final Label lblMonth = new Label(cal.getCurrentMonthName() + " "
                + cal.getCurrentYear());
        Label prevMonth = new Label("<");
        prevMonth.setStyleName("gwt-Label-link");
        Label prevYear = new Label("<<");
        prevYear.setStyleName("gwt-Label-link");
        Grid header = new Grid(1, 5);
        header.setWidth("100%");
        header.setWidget(0, 0, prevYear);
        header.setWidget(0, 1, prevMonth);
        header.setWidget(0, 2, lblMonth);
        header.setWidget(0, 3, nextMonth);
        header.setWidget(0, 4, nextYear);
        header.getCellFormatter().setWidth(0, 0, "15%");
        header.getCellFormatter().setWidth(0, 1, "5%");
        header.getCellFormatter().setWidth(0, 2, "55%");
        header.getCellFormatter().setWidth(0, 3, "5%");
        header.getCellFormatter().setWidth(0, 4, "15%");
        header.setStyleName("calendar-header");

        fTable.setWidget(0, 0, header);
        fTable.getFlexCellFormatter().setHorizontalAlignment(0, 0,
                HasHorizontalAlignment.ALIGN_CENTER);
        fTable.setWidget(1, 0, cal);
        cal.setWidth("100%");
        cal.addNextMonthActivator(nextMonth);
        cal.addPrevMonthActivator(prevMonth);
        cal.addNextYearActivator(nextYear);
        cal.addPrevYearActivator(prevYear);
        cal.addCalendarListener(new CalendarListener() {
            public void onDateClick(CalendarDate date) {
                
txtForecastDate.setText(Constants.getDateText(date.getDate()));
                forecastEndTime = date.getDate().getTime();
                 if (dynamicUpdate) {
                    doCommit();
                 }
                calPopup.hide();
            }

            public boolean onEventDateClick(CalendarDate date) {
                return false;
            }

            public void onMonthChange(CalendarMonth month) {
                lblMonth.setText(cal.getCurrentMonthName() + " "
                        + cal.getCurrentYear());
            }
        });
        /* code for calendar panel from GWT-Widgets ends here */
        calPopup = new PopupPanel(true);
        int left = imgCalendar.getAbsoluteLeft() + 16;
        int top = imgCalendar.getAbsoluteTop() - 60;
        calPopup.setPopupPosition(left, top);
        calPopup.setWidget(fTable);
        calPopup.show();
    }

please help me to find root cause of the issue, and remedy for this issue.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


<<attachment: GWT_DATEPANEL_March_2013.JPG>>

Reply via email to