You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Cedric Legallo <ce...@gmail.com> on 2006/03/28 12:43:02 UTC
Strange result with f:convertDateTime
Hello,
Does anybody had a problem using output tag with a Date Converter ?
the displayed date has -1 to the DAY.
I find on the net someone who has the same problem but no solution were
given.
here is the code.
<t:outputText value="#{parameter.endDate}">
<f:convertDateTime pattern="dd/MM/yyyy HH:mm" timeZone="GMT+1"/>
</t:outputText>
The Date in datebase is correct, and was previously take by an t:inputDate
tag.
When displaying into inputDate the day is correct.
only the output + f:converter combo cause troubles.
--
Le Gallo Cédric
Re: Strange result with f:convertDateTime
Posted by Cedric Legallo <ce...@gmail.com>.
Solved by :
<t:outputText value="#{parameter.endDate}">
<f:convertDateTime pattern="dd/MM/yyyy HH:mm" timeZone="Europe/Paris"/>
</t:outputText>
2006/3/28, Cedric Legallo <ce...@gmail.com>:
>
> Hello,
>
> Does anybody had a problem using output tag with a Date Converter ?
> the displayed date has -1 to the DAY.
>
> I find on the net someone who has the same problem but no solution were
> given.
>
> here is the code.
>
> <t:outputText value="#{parameter.endDate}">
> <f:convertDateTime pattern="dd/MM/yyyy HH:mm" timeZone="GMT+1"/>
> </t:outputText>
>
> The Date in datebase is correct, and was previously take by an t:inputDate
> tag.
> When displaying into inputDate the day is correct.
>
> only the output + f:converter combo cause troubles.
>
> --
> Le Gallo Cédric
>
--
Le Gallo Cédric