You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2009/06/15 01:43:07 UTC

[jira] Resolved: (TOMAHAWK-1390) t:inputCalendar displays year 1900 when an incorrect date is entered

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

Leonardo Uribe resolved TOMAHAWK-1390.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.9-SNAPSHOT
         Assignee: Leonardo Uribe

There is a bug on SimpleDateFormatter. 

Suppose this pattern - date string:

"dd-MM-yy", "08-01-87x"

It should fail, but SimpleDateFormatter just skip the remaining chars.

The problem is when you put something like this:

"dd-MM-yyyy", "08-01-x87"

the parser get the year as 00, and the resulting year is 1900.

In both cases it is expected that the parser fails



> t:inputCalendar displays year 1900 when an incorrect date is entered
> --------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1390
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1390
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Calendar
>    Affects Versions: 1.1.7
>            Reporter: Adam Siemion
>            Assignee: Leonardo Uribe
>            Priority: Minor
>             Fix For: 1.1.9-SNAPSHOT
>
>
> When the user provides an incorrect date value (e.g. "12" when the popupDateFormat is "dd/MM/yyyy") the popup will display year 1900 instead of the current year.

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