Issue Summary

      The Due date field saves the date like the following in the instance database:

      2023-08-22T00:00:00Z
      

      In the issue view, this shows correctly as Aug 22 (e.g., for a user in GMT-7 and the instance timezone set to GMT-7), but the Customer Portal view for that same user shows as Aug 21 instead of Aug 22. This seems to be due to the portal trying to account for the user's timezone and subtracting the timezone offset from the entry in the database.

      Steps to Reproduce

      1. Set the Due date field in a ticket in the issue view
      2. Configure the Due date field to be visible
      3. View My requests page and toggle the Due date field
      4. Observe that the field shows a different date than what it shown in the issue view (e.g., issue view shows Aug 22, but the Customer Portal shows Aug 21)

      System parameters

      jvm.system.timezone: Etc/UTC
      jira.default.timezone: America/Vancouver
      user.timezone: Etc/UTC

      The user is using the jira.default.timezone 

      Expected Results

      The portal view shows the intended date.

      Actual Results

      The timestamp from the database is taken into account and the timezone offset for the user viewing the ticket is subtracted from that timestamp resulting in the incorrect day being shown.

      Workaround

      Ensure that both "Default user time zone" and JVM timezone match or use a date picker custom field.

            [JSDSERVER-14032] Due date field on Customer Portal My Requests page shows incorrectly

            There are no comments yet on this issue.

              Unassigned Unassigned
              8c7f0d7281aa Artur Moura (Inactive)
              Affected customers:
              2 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated: