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/brands.xml.js | |
| parent | d793056d1645c221d02fb821e34ab2c435c387d0 (diff) | |
<Miqdad> fix xml date
Diffstat (limited to 'src/pages/sitemap/brands.xml.js')
| -rw-r--r-- | src/pages/sitemap/brands.xml.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/sitemap/brands.xml.js b/src/pages/sitemap/brands.xml.js index 3c7f1ade..dc92419c 100644 --- a/src/pages/sitemap/brands.xml.js +++ b/src/pages/sitemap/brands.xml.js @@ -15,7 +15,7 @@ export async function getServerSideProps({ res }) { brands.manufactures.forEach((brand) => { const url = sitemap.ele('url'); url.ele('loc', createSlug(baseUrl, brand.name, brand.id)); - url.ele('lastmod', date); + url.ele('lastmod', date.toISOString().slice(0, 10)); url.ele('changefreq', 'daily'); url.ele('priority', '1.0'); }); |
