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.