Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
1.1.3
-
None
-
None
-
Windows XP Professional, JBoss 4.0.4.GA.
Description
If you have a date field in a database and use a outputText with a convertDateTime component embedded in it it displays the date incorrectly - 1 day earlier than the correct date in the database.
If i use the t:inputCalender to display the same date, it displays the correct date that is stored in the database.
-------------------------
<h:outputLabel styleClass="outputLabel" for="review_date" value="#
<h:outputText id="review_date" value="#{RisksBBB.entity.review_date}">
<f:convertDateTime/>
</h:outputText>
<h:message styleClass="message" for="review_date"/>
<h:outputLabel styleClass="outputLabel" for="review_dated" value="#{msgs.review_date}
"/>
<t:inputDate popupCalendar="true" id="review_dated" value="#
"/>
<h:message styleClass="message" for="review_dated"/>
Gives 17-Aug-2006 from tthe outputText but 18-Aug-2006 in the calendar control.