You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Vojta Minarik (Jira)" <ji...@apache.org> on 2020/08/20 14:05:00 UTC

[jira] [Created] (WICKET-6817) DatePicker - getFirstDayOfWeek is wrong by 1 day

Vojta Minarik created WICKET-6817:
-------------------------------------

             Summary: DatePicker - getFirstDayOfWeek is wrong by 1 day
                 Key: WICKET-6817
                 URL: https://issues.apache.org/jira/browse/WICKET-6817
             Project: Wicket
          Issue Type: Bug
          Components: wicket-datetime
    Affects Versions: 9.0.0
            Reporter: Vojta Minarik


{{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).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)