Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-70966

Search REST API uses the instance's timezone instead of the user's one


      Issue Summary

      When using the /wiki/rest/api/content/search endpoint to search for pages based on modified/ created dates, the API is currently using the instance's timezone instead of the one defined on the user's profile.

      Steps to Reproduce

      1. Create a page and remember the exact time of creation
      2. Use the /wiki/rest/api/content/search endpoint to look for pages created/ modified at that time
        e.g. /wiki/rest/api/content/search?cql=(lastmodified > "2020-10-19 19:00")
      3. Change your profile's timezone
      4. Search again, changing the time to reflect the specific timezone chosen

      Expected Results

      The results should be based on the user's timezone (set individually on the user settings/ profile)

      Actual Results

      The search will be based on the instance's timezone (timezone for the user who created the instance).


      Currently there is no known workaround for this behavior. A workaround will be added here when available.

            Unassigned Unassigned
            gtworkowski Guilherme T (Inactive)
            4 Vote for this issue
            5 Start watching this issue