diff --git a/lib/Object/AbstractObject.php b/lib/Object/AbstractObject.php index d3e4c31..bd0c89a 100644 --- a/lib/Object/AbstractObject.php +++ b/lib/Object/AbstractObject.php @@ -205,7 +205,7 @@ function ($obj) { } elseif (is_a($value, AbstractObject::class)) { $results[$field] = $value->exportData(); } elseif (is_a($value, \DateTime::class)) { - $result[$field] = $value->format(\DateTime::ATOM); + $results[$field] = $value->format(\DateTime::ATOM); } else { $results[$field] = $value; }