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.
Problem/Motivation
When using a date facet with hour granularity, the SearchApiDate::calculateRangeAbsolute()
method has a problem when concatenating the value to build the date object from. Pages trying to display items with this facet active, only show the following error message:
The date cannot be created from a format.
Proposed resolution
Use correct value concatenation to fix this problem.
Remaining tasks
Provide a patch
User interface changes
n/a
API changes
n/a
Data model changes
n/a
Comment | File | Size | Author |
---|---|---|---|
#3 | 3009253-3.patch | 772 bytes | hctom |
Comments
Comment #2
hctomHere is a patch that fixes the issue. The colons were missing when adding the minute and hour values.
Comment #3
hctomSorry... here is the patch with correct file extension.
Comment #4
borisson_Sure, this is a small bug and it's an easy fix.
Comment #5
borisson_Committed and pushed, thanks!