From 705f6dbb895bf8201c84393ee7e204ff7572cd10 Mon Sep 17 00:00:00 2001 From: Alex Moon Date: Thu, 20 Feb 2025 11:35:57 -0800 Subject: [PATCH] fix: sitemap time stamp format --- src/pages/wp-sitemap.xml/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/wp-sitemap.xml/index.jsx b/src/pages/wp-sitemap.xml/index.jsx index 3073bcc1..38fb18de 100644 --- a/src/pages/wp-sitemap.xml/index.jsx +++ b/src/pages/wp-sitemap.xml/index.jsx @@ -47,7 +47,7 @@ export const getServerSideProps = async (ctx) => { const fields = posts.map((post) => ({ loc: new URL(post.uri, env.NEXT_PUBLIC_SITE_URL).href, // Absolute url - lastmod: post.modified, + lastmod: new Date(post.modified).toISOString(), })); return getServerSideSitemapLegacy(ctx, fields);