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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jphelan’s picture

This patch worked for me.

swentel’s picture

Status: Active » Fixed

Nice catch, committed and pushed, thanks!

Status: Fixed » Closed (fixed)

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