Add timezone to date string

This commit is contained in:
Terry Sutton committed 2022-08-16 11:57:46 -02:30
1 parent 225c322638
commit 9973e323b1
1 file changed
+2 -2
+2 -2
View File
@@ -12,7 +12,7 @@ const generateRssItem = (post: any): string => {
<title>${post.title}</title>
<link>https://supabase.com${post.path}</link>
<description>${post.description}</description>
<pubDate>${dayjs(post.date).utc().format('ddd, DD MMM YYYY HH:hh:mm')}</pubDate>
<pubDate>${dayjs(post.date).utc().format('ddd, DD MMM YYYY HH:hh:mm ZZ')}</pubDate>
</item>
`
}
@@ -27,7 +27,7 @@ export const generateRss = (posts: any[]): string => {
<language>en</language>
<lastBuildDate>${dayjs(posts[0].date)
.utc()
.format('ddd, DD MMM YYYY HH:hh:mm')}</lastBuildDate>
.format('ddd, DD MMM YYYY HH:hh:mm ZZ')}</lastBuildDate>
<atom:link href="https://supabase.com/blog/rss.xml" rel="self" type="application/rss+xml"/>
${posts.map(generateRssItem).join('')}
</channel>