commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maciej M (JIRA)" <j...@apache.org>
Subject [jira] Created: (VALIDATOR-282) formatDate(String value, Locale locale) in GenericTypeValidator uses DateFormat.SHORT instead of DateFormat.DEFAULT
Date Mon, 25 Jan 2010 12:27:35 GMT
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.


Mime
View raw message