Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3301

SimpleDateFormat-s should be created with Locale defined in constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5-M3
    • 1.5-RC1
    • wicket, wicket-datetime
    • None

    Description

      The wicket-core junit test o.a.w.util.time.TimeTest.test() fails on computers where the default locale strings for "Am/pm marker" is not am/pm. The reason for this is that wicket uses SimpleDateFormat(String pattern) constructor instead of SimpleDateFormat(String pattern, Locale locale) in a lot of places and so the system default locale is used.

      I think for consistent results wicket should always specify a locale and not depend on the system default.

      Attachments

        1. WICKET-3301.patch
          4 kB
          Attila Király

        Activity

          People

            ivaynberg Igor Vaynberg
            akiraly Attila Király
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: