Click
  1. Click
  2. CLK-170

DateField uses the unexpected first day of the week

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

        Sadanori Ito created issue -
        Sadanori Ito made changes -
        Field Original Value New Value
        Attachment first-day-of-week-patch.txt [ 10201 ]
        Malcolm Edgar made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        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
        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
        Malcolm Edgar made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Malcolm Edgar made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Henri Yandell made changes -
        Project Import Fri Mar 20 14:11:32 PDT 2009 [ 1237583492744 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development