Date views filters parse the given date with default timezone

Created on 19 May 2020, over 4 years ago
Updated 3 February 2024, 10 months ago

Problem/Motivation

Search API uses the date field storage timezone when indexing date fields, but values given in views date filters are parsed with the default timezone. That makes the search filtering to fail when both timezones differs. The bug affects in particular to closed range date comparisons.

Proposed resolution

Parse values from date views filter with the same timezone used when indexing.

Remaining tasks

  • [ ] review
  • [ ] test

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

TBD.

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Views integration

Created by

πŸ‡ͺπŸ‡ΈSpain manuel.adan 🌌

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024