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

Date-Time converter does not use 2DigitYearStart for parsing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.13-core
    • 2.0.0-beta-1
    • Components
    • None

    Description

      According to the doc:
      http://myfaces.apache.org/trinidad/devguide/configuration.html#trinidad-config.xml

      The <two-digit-year-start> element defines the year offset that should be used for parsing years with only two digits. If it is not set, it is defaulted to year 1950. This value is used by org.apache.myfaces.trinidad.converter.DateTimeConverter while converting strings to Date. This property may also be explicitly configured with an EL expression that returns Integer object if needed or can be directly harcoded to a integer value.

      This is not apparently used by the DateTimeConverter in parsing, probably a regression from TRINIDAD-208.

      Attachments

        1. trunk_1931.diff
          3 kB
          Yee-Wah Lee

        Activity

          People

            Unassigned Unassigned
            yeelee Yee-Wah Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: