You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2014/01/30 14:54:12 UTC
[jira] [Closed] (VALIDATOR-282) formatDate(String value, Locale
locale) in GenericTypeValidator uses DateFormat.SHORT instead of
DateFormat.DEFAULT
[ https://issues.apache.org/jira/browse/VALIDATOR-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb closed VALIDATOR-282.
--------------------------
> 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 Matys
> Priority: Blocker
> Fix For: 1.4.0 Release
>
>
> 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 was sent by Atlassian JIRA
(v6.1.5#6160)