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

DatePicker - getFirstDayOfWeek is wrong by 1 day

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 9.0.0
    • Fix Version/s: None
    • Component/s: wicket-datetime
    • Labels:
      None

      Description

      DatePicker.getFirstDayOfWeek in Wicket 9.0.0 returns 1 for the English locale, 2 for the Czech locale. This results in incorrect display of days in calendar - week starts with Monday for the English locale, or with Tuesday for the Czech locale.

      The method DatePicker.getFirstDayOfWeek was modified in version 9.0.0, now the result of
      Calendar.getInstance(locale).getFirstDayOfWeek() is not adjusted by - 1 (comparing with Wicket 6.x source code).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              minarikv Vojta Minarik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: