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.
When adding a date field to a View, the date never actually appears. It seems the code in the date handler gets the date value as an array and then immediately tries to perform a strtotime() on it -- which won't work. The attached patch makes sure we call strtotime() on the actual date string, which is the first item in the array.
Comment | File | Size | Author |
---|---|---|---|
#2 | apachesolr_views-date-handler-array-fix-2.patch | 654 bytes | mgerbault |
apachesolr_views-date-handler-array-fix.patch | 643 bytes | aasarava | |
Comments
Comment #1
MiroslavBanov CreditAttribution: MiroslavBanov commentedIn the
else
you don't do strtotime(), which means this breaks the ds_created/ds_changed fields.Comment #2
mgerbaultThis version do the strtotime() on the "else" case.
Comment #4
MiroslavBanov CreditAttribution: MiroslavBanov commentedCommitted, thanks.