From 18a50a76a73c7411138690ba84c7cb3fe37386c2 Mon Sep 17 00:00:00 2001
From: Wagner Trezub <60133113+Wagner3UB@users.noreply.github.com>
Date: Wed, 11 Oct 2023 15:11:11 +0200
Subject: [PATCH] fix: rss card date (#359)
---
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}