diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-11-13 16:28:01 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-11-13 16:28:01 +0700 |
| commit | fba96afd46d37e9cac4f480dac7c6a8fba36ae9a (patch) | |
| tree | e987f5d7f7cf2eb42783cd1f67d95d5c9b7db0cc /src/pages/sitemap/products.xml.js | |
| parent | d793056d1645c221d02fb821e34ab2c435c387d0 (diff) | |
<Miqdad> fix xml date
Diffstat (limited to 'src/pages/sitemap/products.xml.js')
| -rw-r--r-- | src/pages/sitemap/products.xml.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/sitemap/products.xml.js b/src/pages/sitemap/products.xml.js index 221a024a..5ed6b759 100644 --- a/src/pages/sitemap/products.xml.js +++ b/src/pages/sitemap/products.xml.js @@ -19,7 +19,7 @@ export async function getServerSideProps({ res }) { pages.forEach((page) => { const sitemap = sitemapIndex.ele('sitemap'); sitemap.ele('loc', `${baseUrl}/${page}.xml`); - sitemap.ele('lastmod', date); + sitemap.ele('lastmod', date.toISOString().slice(0, 10)); }); res.setHeader('Content-Type', 'text/xml'); |
