Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-19533

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

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Cloud. Using JIRA Server? 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
          44 kB
          Michael Tokar
        2. diff-calendar.txt
          0.6 kB
          Marco Roman
        3. issue_navigator.png
          49 kB
          Foong
        4. JRA-19533.patch
          62 kB
          Scott Hughes [Atlassian]
        5. project_summary.png
          35 kB
          Foong
        6. Screenshot-Edit Issue-calendar-bug.png
          101 kB
          Kristín Hreinsdóttir
        7. select_due_date.png
          19 kB
          Foong

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: