Uploaded image for project: 'Click'
  1. Click
  2. CLK-170

DateField uses the unexpected first day of the week

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: extras
    • Labels:
      None

      Description

      DateField uses the unexpected first day of the week.

      Currently DateField expects that Calendar#getFirstDayOfWeek()
      returns SUNDAY = 0, MONDAY = 1.

      But actually Calendar#getFirstDayOfWeek() returns SUNDAY = 1, MONDAY = 2.

      http://java.sun.com/j2se/1.5.0/docs/api/constant-values.html#java.util.Calendar.SUNDAY

      Therefore, the first day of the week becomes the one different from
      the convention of each country.

      Related bug: CLK-36

        Activity

        Hide
        medgar Malcolm Edgar added a comment -

        Hi Sadanori,

        Thanks for identifying this bug and providing a patch. I have checked it into SVN and it will be available in release 1.2

        Sadly for me, the Java locale for Australia thinks the starting day of the week in Sunday, with it isn't in modern terms, it starts on Monday.

        regards Malcolm

        Show
        medgar Malcolm Edgar added a comment - Hi Sadanori, Thanks for identifying this bug and providing a patch. I have checked it into SVN and it will be available in release 1.2 Sadly for me, the Java locale for Australia thinks the starting day of the week in Sunday, with it isn't in modern terms, it starts on Monday. regards Malcolm

          People

          • Assignee:
            medgar Malcolm Edgar
            Reporter:
            sadanori Sadanori Ito
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development