Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9705

The date search facets don't take the local timezone into account

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.3-milestone-2
    • Fix Version/s: 5.3-rc-1
    • Component/s: Search - Solr
    • Labels:
    • Development Priority:
      High
    • Difficulty:
      Medium
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      If you are on a timezone different than UTC (i.e. the timezone offset is different than 0) then you can reproduce this issue easily like this:

      • create a new page with some keyword in its content
      • search for the keyword; you should get the newly created page in the results
      • use the Last Modification Date facet to show only the documents that have been modified in the last X minutes

      You don't get any results after applying the facet. If you add/subtract the timezone offset from the current date when applying the date facet you get the right results.

      The date facet should use the timezone of the client. This means that the custom date interval that the user enters is in his local timezone.

        Attachments

          Activity

            People

            • Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              mflorea Marius Dumitru Florea
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: