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

DatePicker doesn't adhere to the provided DatePattern

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0-beta2
    • 1.3.0-beta3
    • wicket-datetime
    • None

    Description

      when a pattern like dd.MM.yy is used, the date is actually converted as if the pattern was d.M.yyyy
      this is due to the code in line 50 in DatePicker.js
      var val = '${datePattern}'.replace(/d+/, dt).replace(/M+/, month).replace(/y+/, yr);

      the code should be changed, so that at least patterns like /dd+/, /MM+/ and /yy/ are supported.

      Attachments

        1. datePattern.patch
          1 kB
          Gerolf Seitz

        Activity

          People

            Unassigned Unassigned
            faceman Gerolf Seitz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: