Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1378

Problem with f:convertDateTime Component giving the day before the correct one

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.1.3
    • None
    • JSR-127
    • 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="#

      {msgs.review_date}"/>
      <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="#

      {RisksBBB.entity.review_date}

      "/>
      <h:message styleClass="message" for="review_dated"/>

      Gives 17-Aug-2006 from tthe outputText but 18-Aug-2006 in the calendar control.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kunaalv Kunaal Vaghela
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: