You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org> on 2007/03/16 08:41:23 UTC

[jira] Updated: (ADFFACES-410) DateTimeConverter does not use 2DigitYearStart() when parsing strings with year less than 4-digit

     [ https://issues.apache.org/jira/browse/ADFFACES-410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf updated ADFFACES-410:
----------------------------------------

        Fix Version/s:     (was: 2.0.0-incubating-core-SNAPSHOT)
    Affects Version/s:     (was: 2.0.0-incubating-core-SNAPSHOT)
                       1.0.1-incubating-core-SNAPSHOT

> DateTimeConverter does not use 2DigitYearStart() when parsing strings with year less than 4-digit
> -------------------------------------------------------------------------------------------------
>
>                 Key: ADFFACES-410
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-410
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>            Reporter: Yee-Wah Lee
>            Priority: Minor
>         Attachments: ADFFaces_410.diff
>
>
> 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. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.