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

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.3.1 Release
    • 1.4.0 Release
    • Framework
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: