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

DatePicker javascript uses 4 symbols for year although pattern contains just yy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.5
    • 1.4.7, 1.5-M1
    • wicket-extensions
    • None

    Description

      Steps to reproduce:
      1. Create TextField
      2. Add DatePicker with yy for year (en_US locale, SHORT format, for example).
      3. Set some date to textfield
      4. Open page (year is correctly shown with two digits)
      5. Click datepicker icon
      Expected: year is still 2-digit
      Actual: year becomes 4-digit

      Attachments

        1. wicket-datetime.patch
          31 kB
          count negative

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              slonopotamus Marat Radchenko
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: