pull/2482/head
filip mertens 2 years ago committed by yann300
parent bb801ef36a
commit b075ac19c3
  1. 4
      libs/remix-ui/home-tab/src/lib/components/rssFeed.tsx

@ -12,8 +12,8 @@ export function RSSFeed({ feedUrl, maxItems }: RSSFeedProps) {
useEffect(() => { useEffect(() => {
const fetchData = async () => { const fetchData = async () => {
let parser = new Parser() const parser = new Parser()
let feed = await parser.parseURL(feedUrl); const feed = await parser.parseURL(feedUrl);
for (const item of feed.items) { for (const item of feed.items) {
item.content = item['content:encoded'] item.content = item['content:encoded']
item.date = new Date(item.pubDate).toLocaleDateString('en-US', { item.date = new Date(item.pubDate).toLocaleDateString('en-US', {

Loading…
Cancel
Save