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