Hi,


I am using:-

myfaces-1.2.1-SNAPSHOT

Tomcat 6.0.14

Fedora Linux

java 1.6.0_02

tomahawk 1.1.6


I am extracting the data from my database and diplay on the page, which 
includes one Date field as follows:- 

 

<h:dataTable

 
value="#{hrHandler.allLeaveRecords}"

 
var="record"

 
columnClasses="columnOdd,columnEven"

binding="#{hrHandler.leaveRecordsDataTable}">

 

 

...

 

 
<h:column>

 
<f:facet name="header">

 
<h:commandLink

    id="dateFrom"

   
actionListener="#{hrHandler.sort}">

    <h:outputText
value="Date"/>

 
</h:commandLink>

 
</f:facet>

 
<h:outputText value="#{record.dateFrom}">

    <f:convertDateTime
pattern="dd-MMM-yyyy"/>

 
</h:outputText>

 
</h:column>

 

 
<h:column>

 
<f:facet name="header">

    <h:outputText
value="From"/>

 
</f:facet>

 
<h:outputText value="#{record.dateFrom}">

    <f:convertDateTime
pattern="HH:mm"/>

 
</h:outputText>

 
</h:column>

 

The time is earlier by 8 hours compared to the data extracted from the
database. It also happens that the my location is GMT+8. I am not sure whether
it is related to this.

However, if I use the JSF 1.2_07
Reference Implementation, it shows correctly.Can anybody guide me whether it is 
my configuration problem or the bug?


thanks and rgds,






 

 

 

 


_________________________________________________________________
Get your free suite of Windows Live services today!
http://www.get.live.com/wl/all

Reply via email to