Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-282

formatDate(String value, Locale locale) in GenericTypeValidator uses DateFormat.SHORT instead of DateFormat.DEFAULT

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.3.1 Release
    • Fix Version/s: 1.4.0 Release
    • Component/s: Framework
    • Labels:
      None
    • Environment:

      Win XP, java 1.6.0_17

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              metyl Maciej Matys
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: