Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-37013

startofweek() jql function doesn't reflect system locale

    XMLWordPrintable

Details

    Description

      According to date_time.txt:

      For the startOfWeek() function the result depends upon your locale. For example, in Europe the first day
      of the week is generally considered to be Monday, while in the USA it is considered to be Sunday.

      But, seem not the case where only able to search start on Sunday issue.

      Steps to reproduce the problem:

      1. Change locale to UK.
      2. Configure JIRA environment using this argument:
        -Duser.language=en -Duser.country=DK -Duser.timezone=Europe/Copenhagen
      3. Search using this JQL:
        createdDate > startOfWeek() AND createdDate < endOfWeek()
        
      4. Still can show last week Sunday issue.

      Attachments

        1. user_timezone_europe.png
          23 kB
          John Chin
        2. JRA37013_user_settings.png
          6 kB
          Sune Mølgaard

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ckimloong John Chin
              Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: