Hi,
in my components.xml I add the line:
<i18n:time-zone-selector cookie-enabled="true" time-zone-id="Europe/Rome"/>
Let suppose that my timestamp value in my db is 2008-11-22 14:00.
In a xhtml with
<s:convertDateTime pattern="dd-MM-yyyy HH:mm" />
the timestamp is shown as 2008-11-12 16:00 (applying the correct time-zone, i.e. plus two hours)
But the instruction
<rich:calendar id="sampleTimestamp" value="..." datePattern="dd/MM/yyyy HH:mm" showApplyButton="true" />
seems to ignore the time-zone and shows the value as in database.
Is this an known problem? Is it to be notified in rich-faces forum?
I am using seam 2.1.1.CR1 and richfaces 3.2.2.GA.
Regards,
Nicola
Hi,
I solved.
Of course it's not a bug, but I didn't added timeZone attribute to rich:calendar
<rich:calendar ... datePattern="dd/MM/yyyy HH:mm" timeZone="#{org.jboss.seam.international.timeZone}" />
Bye,
Nicola