Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Date filter does not work with relative dates. strtotime is being called with the second parameter set to "0"
$value = intval(strtotime($this->value['value'], 0));
$value = new DateObject($value);
This means that any relative dates will be computed relative to the start of unix time. I have no idea if there is some legitimate use for this, but I think this was not intended.
Comment | File | Size | Author |
---|---|---|---|
#1 | date_filter_relative-apachesolr_views-2191157-1.patch | 1.05 KB | MiroslavBanov |
Comments
Comment #1
MiroslavBanov CreditAttribution: MiroslavBanov commentedPatch attached.
Comment #2
boyan.borisov CreditAttribution: boyan.borisov commentedworks for me
Comment #4
MiroslavBanov CreditAttribution: MiroslavBanov commentedFixed.