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

DatePicker issues with locale medium date format

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.17
    • Fix Version/s: 1.5-RC4
    • Component/s: wicket-datetime
    • Labels:
      None

      Description

      DateTextField as follows: DateTextField d = new DateTextField(id, model, new StyleDateConverter("M-",false));

      Case 1:

      • en-US locale
      • for example DatePicker insert 04 rather than Apr in DateTextField, even though pattern clearly says MMM

      Case 2:

      • pl-PL locale
      • 2010-10-25 is in the DateTextField
      • DatePicker opens on April 2031 rather than October 2010

      I believe the problem lies in wicket-date.js, in functions substituteDate and parseDate.

      I know this might be duplicate of WICKET-2427 and WICKET-2375, but apparently this hasn't been properly fixed yet.

        Attachments

        1. issue3598.zip
          20 kB
          Andrea Del Bene
        2. fix-WICKET-3598-1-locale.patch
          3 kB
          Attila Király
        3. fix-WICKET-3598-2-js-date-format-parse.patch
          6 kB
          Attila Király
        4. wicket-3598.zip
          6 kB
          Attila Király
        5. unit-WICKET-3598-1-locale.patch
          2 kB
          Attila Király

          Activity

            People

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              jrogoznicki Jacek Rogoźnicki
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: