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

Calendar popup prints multiple dates in October when client is on Brazilian timezone

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      When your operating system has its timezone set to "Brazil" or "America/Sao_Paolo" or "GMT-3", there is a peculiarity in Javascript whereby the following happens:

      Evaluating
      javascript:document.innerHTML=new Date(2009,09,17)
      produces the output

      Sat Oct 17 2009 00:00:00 GMT-0300 (BRT)

      and

      evaluating
      javascript:document.innerHTML=new Date(2009,09,18)
      produces the output

      Sat Oct 17 2009 23:00:00 GMT-0300 (BRT)

      This is causing a bug in our calendar popup picker used for dates in JIRA, where for instance in 2009, the 17th of October is repeated twice, as shown in the screenshot. The problem repeats every October.

      Similar problems could exist with other timezones and months. Brazil is different from Australia in that DST takes effect at Midnight.

      The problem with the date picker only occurs when:

      • The time component is set to Midnight (i.e. its a date-only picker, or a date-time picker with the time set to Midnight)
      • There is already a value set for the component

      Attachments

        1. CDS-781_DST.png
          CDS-781_DST.png
          44 kB
        2. diff-calendar.txt
          0.6 kB
        3. issue_navigator.png
          issue_navigator.png
          49 kB
        4. JRA-19533.patch
          62 kB
        5. project_summary.png
          project_summary.png
          35 kB
        6. Screenshot-Edit Issue-calendar-bug.png
          Screenshot-Edit Issue-calendar-bug.png
          101 kB
        7. select_due_date.png
          select_due_date.png
          19 kB

        Issue Links

          Activity

            People

              ohernandez@atlassian.com Oswaldo Hernandez (Inactive)
              mtokar Michael Tokar
              Votes:
              14 Vote for this issue
              Watchers:
              27 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: