• 43
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Add time zones to user profile. That way the dates displayed to a user are always contiguous with their local time zone, rather than the server's time zone.

        1. log_110314_115720______.csv
          24 kB
        2. times.png
          times.png
          38 kB

            [JRASERVER-9] User Preference: User Time Zones

            teste

            ygor mendes added a comment - teste

            aaa

            Mohammad Fares added a comment - aaa

            Far as I can tell, this hasn't been fixed at all. All times are the system time still.

            Deleted Account (Inactive) added a comment - Far as I can tell, this hasn't been fixed at all. All times are the system time still.

            G B added a comment -

            I've opened JRA-28939 to track the request for time zone support in emails.

            G B added a comment - I've opened JRA-28939 to track the request for time zone support in emails.

            MattS added a comment - - edited

            @luis There are potentially the Created date, Updated date, Due Date and all custom Date Picker and Date Time fields.
            With 4.4 and customized email templates I had to do something like this:

            #set ($startTime = $customFieldManager.getCustomFieldObject("customfield_10425").getValue($issue))
            Same timezone as JIRA system: $startTime 
            Formatted in the timezone of the user the email is being sent to: $dateformatter.formatDMYHMS($startTime))
            

            So I think there is likely still a wrinkle in email templates.

            MattS added a comment - - edited @luis There are potentially the Created date, Updated date, Due Date and all custom Date Picker and Date Time fields. With 4.4 and customized email templates I had to do something like this: #set ($startTime = $customFieldManager.getCustomFieldObject("customfield_10425").getValue($issue)) Same timezone as JIRA system: $startTime Formatted in the timezone of the user the email is being sent to: $dateformatter.formatDMYHMS($startTime)) So I think there is likely still a wrinkle in email templates.

            gbrauer1, I believe most JIRA emails do not contain the time in the email body. For emails that do contain the time, I would expect it to respect the user's time zone setting.

            Luis Miranda (Inactive) added a comment - gbrauer1 , I believe most JIRA emails do not contain the time in the email body. For emails that do contain the time, I would expect it to respect the user's time zone setting.

            G B added a comment -

            Is my understanding correct that time zone support has only been implemented in the web UI, but there is no time zone support yet for outgoing emails?

            G B added a comment - Is my understanding correct that time zone support has only been implemented in the web UI, but there is no time zone support yet for outgoing emails?

            azhdanov, the easiest way to format/parse dates in a timezone-aware manner is to use a DateTimeFormatter. See the API documentation for the package com.atlassian.jira.datetime.

            The TimeZoneManager and TimeZoneService also provide some more low-level functionality, if the above classes isn't enough for your use (see com.atlassian.jira.timezone).

            Luis Miranda (Inactive) added a comment - azhdanov , the easiest way to format/parse dates in a timezone-aware manner is to use a DateTimeFormatter . See the API documentation for the  package com.atlassian.jira.datetime . The TimeZoneManager  and TimeZoneService  also provide some more low-level functionality, if the above classes isn't enough for your use (see com.atlassian.jira.timezone ).

            Andriy Zhdanov added a comment - - edited

            Could someone please bring the light on how it is implemented? Specifically, how to get user's time-zone in Gadget and Report?

            Answered myself: see TimeZoneManager

            Andriy Zhdanov added a comment - - edited Could someone please bring the light on how it is implemented? Specifically, how to get user's time-zone in Gadget and Report? Answered myself: see TimeZoneManager

            epic! time to upgrade to 4.4.

            Paul D. Walker added a comment - epic! time to upgrade to 4.4.

              Unassigned Unassigned
              mike@atlassian.com Mike Cannon-Brookes
              Votes:
              454 Vote for this issue
              Watchers:
              212 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 600h Original Estimate - 600h
                  600h
                  Remaining:
                  Remaining Estimate - 600h
                  600h
                  Logged:
                  Remaining Estimate - 600h
                  25m