You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Maciej M (JIRA)" <ji...@apache.org> on 2010/01/25 13:27:35 UTC

[jira] Created: (VALIDATOR-282) formatDate(String value, Locale locale) in GenericTypeValidator uses DateFormat.SHORT instead of DateFormat.DEFAULT

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


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.
-
You can reply to this email to add a comment to the issue online.