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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        4d 10h 52m 1 Malcolm Edgar 26/Jan/07 01:53
        In Progress In Progress Resolved Resolved
        8m 31s 1 Malcolm Edgar 26/Jan/07 02:01
        Resolved Resolved Closed Closed
        59d 3h 8m 1 Malcolm Edgar 26/Mar/07 05:09
        Henri Yandell made changes -
        Project Import Fri Mar 20 14:11:32 PDT 2009 [ 1237583492744 ]
        Malcolm Edgar made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Malcolm Edgar made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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 Open [ 1 ] In Progress [ 3 ]
        Sadanori Ito made changes -
        Field Original Value New Value
        Attachment first-day-of-week-patch.txt [ 10201 ]
        Sadanori Ito created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development