You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Yee-Wah Lee (JIRA)" <de...@myfaces.apache.org> on 2012/06/27 22:49:42 UTC

[jira] [Created] (TRINIDAD-2283) Unexpected value change with 2 digit defaulting in dateTimeConverter

Yee-Wah Lee created TRINIDAD-2283:
-------------------------------------

             Summary: Unexpected value change with 2 digit defaulting in dateTimeConverter
                 Key: TRINIDAD-2283
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2283
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions: 2.0.1-core
            Reporter: Yee-Wah Lee
            Priority: Minor


1. Create an inputText with a convertDateTime uses two-digit year patterns, e.g. convertdateTime pattern="dd/MM/yy"

2. Set the inputText value to a date that falls outside the default two-digit-year-start in trinidad-config.xml. The default value is 1950, so two-digit-years would usually resolve within [1950, 2050]. For example, set the date to "1/1/1377".

3. Run the jspx, see that the value is "1/1/77". 

4. Modify it to "1/1/78" and submit. Observe that the value changes to 1/1/1978. This is unexpected for the user who did not enter the century change (and also cannot see the effects). 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira