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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MiroslavBanov’s picture

Status: Active » Needs work

In the else you don't do strtotime(), which means this breaks the ds_created/ds_changed fields.

mgerbault’s picture

This version do the strtotime() on the "else" case.

MiroslavBanov’s picture

Status: Needs work » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

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