2 Replies Latest reply on Jul 31, 2008 7:01 AM by Nikolaos Georgosopoulos

    Richfaces Calendar control

    Nikolaos Georgosopoulos Newbie

      I would like to ask if someone can tell me why is the calendar control returning the previous day than the selected on in the value bean.

      try the following code:

      <rich:calendar value="#{sample.theDate}" timeZone="#{sample.timeZone}">
      <h:outputText value="#{sample.theDate}"></h:outputText>
      <h:commandButton action="" value="submit"></h:commandButton>

      in a page and after submition you will see that the outputText is presenting the selected date -1 day.

      Is there a reason? can we avoid it?