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

Nick Burch resolved VALIDATOR-282.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4

In r1128355 I have changed it to accept both, which will prevent issues for 
existing uses, whilst allowing the more common format to be accepted.

> formatDate(String value, Locale locale) in GenericTypeValidator uses 
> DateFormat.SHORT instead of  DateFormat.DEFAULT
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: VALIDATOR-282
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-282
>             Project: Commons Validator
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 1.3.1 Release
>         Environment: Win XP, java 1.6.0_17
>            Reporter: Maciej M
>            Priority: Blocker
>             Fix For: 1.4
>
>
> In GenericTypeValidator function public static Date formatDate(String value, 
> Locale locale) uses for formatter 
> DateFormat.getDateInstance(DateFormat.SHORT, locale).
> In my opinion it should take DateFormat.getDateInstance(DateFormat.DEFAULT, 
> locale) for not null locale or DateFormat.getDateInstance() for null locales.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to