diff --git a/includes/election-default.controller.inc b/includes/election-default.controller.inc index 1e58a29..4bcea16 100644 --- a/includes/election-default.controller.inc +++ b/includes/election-default.controller.inc @@ -23,6 +23,9 @@ class ElectionDefaultController extends EntityAPIController { // Convert timestamp fields. foreach ($entity as $property => $value) { if (substr($property, -5) == '_time' && !empty($value) && !is_numeric($value)) { + if (is_array($value)) { + $value = $value['date'] . ' ' . ($value['time'] ? '00:00' : $value['time']); + } $entity->$property = strtotime($value); } }