Hi,

I'm using MyFaces 1.1.5 with Tomahawk 1.1.6 on WebLogic 9.2.2.  I have this
input field on my JSF page:

                                        <t:inputCalendar id="dateFrom"
value="#{SearchBean.fromDate}" helpText="mm-dd-yyyy" renderAsPopup="true"
renderPopupButtonAsImage="true">
                                                <f:convertDateTime
type="date" pattern="MM-dd-yyyy"/>
                                        </t:inputCalendar>

and this backing bean code:

        public void setFromDate(Date p_fromDate) {
                this.m_fromDate = p_fromDate;
                logger.debug("setting from date: " + this.m_fromDate);
        }

but if I type a value like "10-10-2008" into my search box, what is actually
logged is

DEBUG 2008-12-04 09:04:17,270 -
[com.myco.nps_history.beans.SearchBean::setFromDate] - setting from date:
Thu Oct 09 18:00:00 MDT 2008

What can I do to prevent this off-by-one error?

Thanks, - Dave
-- 
View this message in context: 
http://www.nabble.com/t%3Acalendar-is-giving-me-dates-off-by-1-day-tp20836530p20836530.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to