We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d0196ce + 705f6db commit 5679d01Copy full SHA for 5679d01
src/pages/wp-sitemap.xml/index.jsx
@@ -47,7 +47,7 @@ export const getServerSideProps = async (ctx) => {
47
48
const fields = posts.map((post) => ({
49
loc: new URL(post.uri, env.NEXT_PUBLIC_SITE_URL).href, // Absolute url
50
- lastmod: post.modified,
+ lastmod: new Date(post.modified).toISOString(),
51
}));
52
53
return getServerSideSitemapLegacy(ctx, fields);
0 commit comments