From 8f210906596da857826458040cd955b20de15721 Mon Sep 17 00:00:00 2001 From: buttle Date: Fri, 30 Jul 2021 11:28:10 +0200 Subject: [PATCH] removes month and day from site meta date value --- src/Site/BlockLayout/ArchiveSiteMeta.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Site/BlockLayout/ArchiveSiteMeta.php b/src/Site/BlockLayout/ArchiveSiteMeta.php index 15660a5..82f2e94 100644 --- a/src/Site/BlockLayout/ArchiveSiteMeta.php +++ b/src/Site/BlockLayout/ArchiveSiteMeta.php @@ -1,6 +1,7 @@ getHelperPluginManager()->get('archiveSiteMeta'); $collections = $archiveSiteHelper->getCollections(); + $date = new DateTime($block->dataValue('project_date')); return $view->partial('common/block-layout/site-meta', [ 'artist' =>$block->dataValue('currator'), - 'project_date' => $block->dataValue('project_date'), + 'project_date' => $date->format('Y'), 'collection' => $collections[$block->dataValue('collection')], 'site' => $site, 'tech_document_link' => $tech_document_link