mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Add timezone to date string
This commit is contained in:
1 parent
225c322638
commit
9973e323b1
1 file changed
+2
-2
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user