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

startofweek() jql function doesn't reflect system locale

XMLWordPrintable

      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.

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

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

                Created:
                Updated: