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.
It seems that strtotime($info[$field]) returns NULL if the value is already a timestamp. At least that's what I'm getting. If I remove strtotime() it works. Perhaps you could test for $build[$source]['#field_type'] == datestamp
Comment | File | Size | Author |
---|---|---|---|
#1 | 1905752-1-fix-for-strtotime-on-timestamp-error.patch | 603 bytes | jphelan |
Comments
Comment #1
jphelan CreditAttribution: jphelan commentedThis patch worked for me.
Comment #2
swentel CreditAttribution: swentel commentedNice catch, committed and pushed, thanks!