diff --git a/lib/views/atom.tsx b/lib/views/atom.tsx index e2565bfe3494..71ccabd688d5 100644 --- a/lib/views/atom.tsx +++ b/lib/views/atom.tsx @@ -3,15 +3,14 @@ import type { FC } from 'hono/jsx'; import type { Data } from '@/types'; const RSS: FC<{ data: Data }> = ({ data }) => ( - + {data.title || 'RSSHub'} - + + {data.id || data.link} {data.description || data.title} - Powered by RSSHub RSSHub - contact@rsshub.app (RSSHub) - {data.language || 'en'} - {data.lastBuildDate} + {new Date(data.lastBuildDate || new Date()).toISOString()} {data.author || 'RSSHub'} @@ -21,13 +20,11 @@ const RSS: FC<{ data: Data }> = ({ data }) => ( {data.item?.map((item) => ( {item.title} - - {item.description} - + {item.description} {item.guid || item.link || item.title} - {item.pubDate && {item.pubDate}} - {item.updated && {item.updated || item.pubDate}} + {item.pubDate && {new Date(item.pubDate).toISOString()}} + {new Date(item.updated || item.pubDate || new Date()).toISOString()} {item.author && ( {item.author}