Hi Ranchers,
I am having an issue with date display in an
JSF application
say 31/12/2006 date is being displayed as 30/12/2006
while in DataBase it is stil 31/12/2006.
what may be an issue?
is it an issue related to MyFaces?
I got a solution to set Environment variable:
CATALINA_OPTS= -Duser.timezone = GMT while starting server (Tomcat5.0)
but I can ask client to do this each time at the server start-up.
So how to set up this var for
Tomcat as well as
JBoss because this variable solves the problem.
Mycode snippet:
<t:inputText styleClass="inputdis" id="txtLrs11" value="#{scheduleBean.datScheduleDate11}" readonly="true">
<f:convertDateTime timeZone="#{policyBean.timezone}" pattern="MM/dd/yyyy"/>
</t:inputText>
---------------
in the above code:
policyBean.timezone is to set timezone to "GMT+10)" bcos in MyEclipse I don know how to set CATALINA_OPTS.
its working fine but then while saving it to DataBase it is saving as 30/12/2006 instead of 31/12/2006.
Please Help me.
Thanks in Advance.....