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

%%CURRENT_DATETIME%% in post function doesn't set the correct date on Date Picker fields

    XMLWordPrintable

Details

    Description

      Issue Summary

      When you create a post-function on the workflow to add %%CURRENT_DATETIME%% on a custom field Date Picker field, it comers one day after date. It depends on what time you trigger this post-function.
      Here we have an example:

      Steps to Reproduce

      1. Add a post-function on the workflow to edit Date Picker field with %%CURRENT_DATETIME%%;
      2. Perform the steps to trigger the post-function;
      3. Normally it happens at the end of the day;

      Expected Results

      Date in Date Picker field displays the correct date. (i.e. in the user's timezone)

      Actual Results

      Date in Date Picker field displays the wrong date. (it displays the date using the Jira System timezone settings)

      Workaround

      Currently, there is no workaround using a Date Picker Field for this matter.

      However, a Date/Time Picker Field could be utilized instead, which will correctly display the date and time in the user's timezone.

      Attachments

        1. image-2020-08-28-10-31-10-835.png
          image-2020-08-28-10-31-10-835.png
          27 kB
        2. screenshot-1.png
          screenshot-1.png
          105 kB
        3. screenshot-2.png
          screenshot-2.png
          32 kB
        4. Screen Shot 2020-08-26 at 17.03.02.png
          Screen Shot 2020-08-26 at 17.03.02.png
          75 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              91eeb50e7a1f Henrique Bagatini [Atlassian] (Inactive)
              Votes:
              35 Vote for this issue
              Watchers:
              21 Start watching this issue

              Dates

                Created:
                Updated: