Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-208

DateTimeConverter does not use 2DigitYearStart() when parsing strings with year less than 4-digit

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      1. Create an inputText with an attached dateTimeConverter, and bind its value to a backing bean.

      <tr:inputText value="#

      {date.date1}" autoSubmit="true">
      <tr:convertDateTime/>
      </tr:inputText>
      <tr:outputText value="#{date.date1}

      "/>

      2. When the page runs, enter a date like "1/1/07" and submit

      3. The outputText shows that the date submitted was "1st January 7 AD", not the (more likely expected) 2007 A.D. This is despite the fact that the DateTimeConverter uses 1950 as the default century for interpreting 2 digit years.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            matzew Matthias Wessendorf
            yeelee Yee-Wah Lee
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment