From d509471994cfc4be62b1f15c60b06388ff8e0a9c Mon Sep 17 00:00:00 2001 From: Giulia Ghisini Date: Tue, 26 Sep 2023 10:13:39 +0200 Subject: [PATCH] fix: fix rsss CardWithImageTemplate view date --- RELEASE.md | 1 + .../ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE.md b/RELEASE.md index 3f99c042b..dfe835db4 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -35,6 +35,7 @@ ### Fix - Sistemato margine del blocco Alert quando allineato a sinistra +- Sistemato il template degli Rss Card con immagine per mostrare la data corretta ## Versione 8.7.0 (20/09/2023) diff --git a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx index c861e3d62..3dc1c75e4 100644 --- a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx @@ -78,7 +78,9 @@ const CardWithImageRssTemplate = ({ )} - {getViewDate(item.pubDate, intl.locale)}{' '} + + {getViewDate(item.pubDate || item.date, intl.locale)} + {' '} {item.title}