diff --git a/src/Plugin/jsonapi/FieldEnhancer/CardLinkEnhancer.php b/src/Plugin/jsonapi/FieldEnhancer/CardLinkEnhancer.php index f0a6b25..d5b202e 100644 --- a/src/Plugin/jsonapi/FieldEnhancer/CardLinkEnhancer.php +++ b/src/Plugin/jsonapi/FieldEnhancer/CardLinkEnhancer.php @@ -183,7 +183,7 @@ public function getCardFields(EntityInterface $node) { } // Add the date field for publication. if ($node->hasField('field_publication_date') && !$node->field_publication_date->isEmpty()) { - $card_fields['date'] = TideLandingPageHelper::localDateAndTimeFormatter($node->get('field_publication_date')->getValue()[0]); + $card_fields['date'] = TideLandingPageHelper::localDateAndTimeFormatter($node->get('field_publication_date')->getValue()[0]['value']); } } if ($module_handler->moduleExists('tide_profile')) {