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

SimpleDateFormat-s should be created with Locale defined in constructor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-M3
    • Fix Version/s: 1.5-RC1
    • Component/s: wicket, wicket-datetime
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: