summaryrefslogtreecommitdiff
path: root/src/pages/sitemap/brands.xml.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/sitemap/brands.xml.js')
-rw-r--r--src/pages/sitemap/brands.xml.js2
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');
});