Yes, it's the same problem as the thread from a few days back with "headache" in the subject (which is a very fitting subject I might add).

I have to deal with this same problem so I think I'll probably just end up making a component that extends the normal DateTimeConverter and acts like would be expected.  Maybe a sandbox candidate if others are interested?

Travis

On 10/25/05, Simon Kitching <[EMAIL PROTECTED]> wrote:
Francesco Consumi wrote:
>
> Hi all,
>
> since I replaced myfaces-all.jar from 1.1.0 with 1.1.1rc3, I noticed a
> strange problem with JSF and date fields: every date printed with jsf
> tag is printed as day *before* .
> if I have a date in the bean:
>
> Date d = new java.util.date(2005, 02, 01)
>
> and I write in page:
>
> <% out.print(bean.d); %>
>
> I obtain Tue 01 Feb 2005, 00:00:00 CEST
>
> If I use
>
> <h:outputText value="#{bean.d}" />
>
> I obtain 31-jan-05
>
> and the same result with every JSF tag ?
>
> same problem with times. every time is represented as the hour before;
> 12.00 instead of 13.00 .

From other emails on this list I gather that in order to be compatible
with the Sun specification for JSF, dates now default to GMT timezone.

That seems to match what you are seeing. I suggest searching the email
archives for further details.

Regards,

Simon

Reply via email to