When adding a views filter and comparing a date field against a relative date (for instance "now"), the filter only compares the days. It does not take the time into account.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

psha created an issue. See original summary.

psha’s picture

This patch uses the DateObject::hasTime() method to accurately determine whether the argument has time component.

psha’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: apachesolr-relative-date-filter-2650250-1.patch, failed testing.

The last submitted patch, 2: apachesolr-relative-date-filter-2650250-1.patch, failed testing.

  • MiroslavBanov committed f1cf7a6 on 7.x-1.x authored by psha
    Issue #2650250 by psha: Filtering by relative date doesn't take time...
MiroslavBanov’s picture

Status: Needs work » Fixed

Ignore this testbot. Thanks for the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.