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

Project versions management page version release date date picker does not use ISO8601 flag

    XMLWordPrintable

Details

    Description

      New configuration flag introduced in "Look and Feel" - "Use ISO8601 standard in Date Picker" is not used correctly in manage project version page.
      An excerpt form jira core EditVersionsRow.js file:

              Calendar.setup({
                  singleClick: true,
                  align: "Bl",
                  firstDay: AJS.params.firstDay,
                  button: this.$el.find("#project-config-versions-release-date-trigger")[0],
                  inputField: this.$el.find("#project-config-version-release-date-field")[0],
                  currentMillis: AJS.params.currentMillis,
                  useISO8061: AJS.params.useISO8061,
                  ifFormat: AJS.params.dateFormat
              });
      

      At the same time Calendar.setup.js defines following parameter for ISO8601:

      Calendar.setup = function (params) {
      
      ...
      
           /*
           Set this to true if you want to use the ISO 8601 week numbering scheme.  This was the old default.
           But is now the week contain Jan 01 is considered the first week of the year after many customer requests
           so we now useISO8601WeekNumbers is false by default. 
          */
          param_default("useISO8601WeekNumbers",    false);
      

      Result is that on the project versions management page calendar does not care about what is set in configuration, it shows Sunday as first day of week and week numbers are counted incorrectly (JRA-10088).

      And moreover, which standard do you implement ISO8_061_ or ISO8_601_? I found references to both standars in Jira codebase. I assume that you use ISO8601 about dates not ISO8061 about alpine ski bindings

      Hope this bug will be fixed soon.

      Attachments

        Activity

          People

            rsmart metapoint
            9dcf8b2bc0b1 Tanel Tenso
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: