From b8fd3e64eb5c81af0f248af788dfc87679254c78 Mon Sep 17 00:00:00 2001 From: Wagner Trezub Date: Wed, 11 Oct 2023 14:47:27 +0200 Subject: [PATCH] fix: rss card date --- RELEASE.md | 6 ++++++ .../Blocks/RssBlock/CardWithImageRssTemplate.jsx | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/RELEASE.md b/RELEASE.md index 81e54f1cf..6a88d4923 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -30,6 +30,12 @@ - ... --> +## Versione 7.22.2 (11/10/2023) + +### Fix + +- Sistemato il template degli Rss Card con immagine per mostrare la data corretta + ## Versione 7.22.1 (27/09/2023) ### Migliorie diff --git a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx index f5db85ede..877999a5e 100644 --- a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx @@ -76,7 +76,9 @@ const CardWithImageRssTemplate = ({ )} - {getViewDate(item.pubDate, intl.locale)}{' '} + + {getViewDate(item.pubDate || item.date, intl.locale)} + {' '} {item.title}