Try setting the timezone in the f:convertDateTime.
Ex.
<f:convertDateTime pattern="MM/dd/yyyy" timeZone="#{bean.timeZone}"/>
where bean.timeZone is defined as
public TimeZone getTimeZone() {
return TimeZone.getDefault();
}
-------------- Original message ----------------------
From: "Neuman, Ben J., A&M IRM" <[EMAIL PROTECTED]>
> I see that this has come up before, however, I continue to experience this
> problem with the sandbox datetime converter.
>
> I'm using an inputText component to capture the date using pattern 'yyyy'.
> The date returned is always Dec. 31, yyyy-1. Could this be the GMT/local
> time conversion problem? If so, why does it continue to occur when using the
> sandbox dateTime converter?
>
>
> <t:inputText value='#{mybean.mydate}'>
> <f:convertDateTime pattern='yyyy'/>
> </t:inputText>
>
> I have set up the sandbox converter as my default DateTime converter in
> facesconfig:
>
> <converter>
> <converter-for-class>java.util.Date</converter-for-class>
>
> <converter-class>org.apache.myfaces.custom.convertDateTime.DateTimeConverter
> </converter-class>
> </converter>
>
>
> Thanks for any help!
> Ben