Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add timezone to date string

Terry Sutton9973e323b156
diff --git a/apps/www/lib/rss.tsx b/apps/www/lib/rss.tsx
index 639850a662c..f0becd3fd6e 100644
--- a/apps/www/lib/rss.tsx
+++ b/apps/www/lib/rss.tsx
@@ -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>