Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-93828

Time is displaying differently after migrating from Cloud to Server

      Summary

      After migrating from Cloud to Server, the time is showing differently in "Page History" 

      Environment

      • Cloud to Server migration

      Steps to Reproduce

      1. In Confluence Cloud, perform a space export
      2. Import the backup into Confluence DC or Server where the Confluence DC/server is in another timezone except UTC
      3. Compare the "Published" time in Page History between Server and Cloud

      Expected Results

      The published timestamp is shown in the Confluence DC/server timezone

      Actual Results

      The time is shown in UTC

            [CONFSERVER-93828] Time is displaying differently after migrating from Cloud to Server

            Edward made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Edward made changes -
            Labels New: warranty
            SET Analytics Bot made changes -
            Support reference count New: 1
            Ahmad Faridi made changes -
            Labels Original: defense-squad mission-control
            Ahmad Faridi made changes -
            Affects Version/s Original: 7.18.2 [ 101802 ]
            Affects Version/s Original: 7.4.6 [ 92827 ]
            Affects Version/s Original: 6.13.0 [ 82098 ]
            Affects Version/s New: 7.19.16 [ 106144 ]
            Ahmad Faridi made changes -
            UIS Original: 5
            Ahmad Faridi made changes -
            Support reference count Original: 73
            Ahmad Faridi made changes -
            Description Original: h3. Summary
            After migrating from Server to Cloud, the time is showing differently in "Page History" tab due to the JVM timezone. This is similar issue as in Jira: JRACLOUD-65305.

            h3. Environment
            * Server to Cloud migration

            h3. Steps to Reproduce
            # In Confluence Server, make sure the user timezone is not set / has been set to other than UTC
            # Perform a space export
            # Import the backup into Confluence Cloud
            # Compare the "Published" time in Page History between Server and Cloud

            h3. Expected Results
            The time is showing the same as Confluence Server

            h3. Actual Results
            The time is showing 8 hours late (taking UTC+8 as the example)
            !screenshot2.jpg|thumbnail!

            h3. Notes
            If -Duser.timezone is not set, it will take the system timezone.

            h3.Workaround
            *Please reach out to Atlassian Support to enable a fix on your site.*

            {panel:title=This worked on only newly created content|borderStyle=solid|borderColor=#3C78B5|titleBGColor=#3C78B5|bgColor=#E7F4FA}
            Set the user.timezone to UTC
            # Under {{<installation-directory>/bin/}}
            # Edit *setenv.sh*
            # Add the timezone property:
            {code}CATALINA_OPTS="-Duser.timezone=UTC ${CATALINA_OPTS}"{code}
            {panel}
            New: h3. Summary

            After migrating from Cloud to Server, the time is showing differently in "Page History" 
            h3. Environment
             * Cloud to Server migration

            h3. Steps to Reproduce
             # In Confluence Cloud, perform a space export
             # Import the backup into Confluence DC or Server where the Confluence DC/server is in another timezone except UTC
             # Compare the "Published" time in Page History between Server and Cloud

            h3. Expected Results

            The published timestamp is shown in the Confluence DC/server timezone
            h3. Actual Results

            The time is shown in UTC
            Ahmad Faridi made changes -
            Reporter Original: Ting [ cteh ] New: Ahmad Faridi [ afaridi ]
            Ahmad Faridi made changes -
            Assignee Original: Sergey Abramov [ 0ec4cf8d04e6 ]

              Unassigned Unassigned
              afaridi Ahmad Faridi
              Affected customers:
              1 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated: