It seems as though the sitemap function is applying a toString() to the lastmod field, which messes up js date formatting. This may be something you're unable to change, but just so you're aware passing js dates doesn't work as expected.
/**TODO: one day make this accurate */
const lastModified = new Date();
lastModified.setMonth(lastModified.getMonth() - 1)
// toString() is messing this up
console.log(lastModified)
return brands.map(brand => ({
loc: `/products/${brand.name}`,
lastmod: lastModified //toString() seems to be applied here, converting the output from ISO format to
//"Thu Jul 27 2023 19:25:17 GMT-0400 (Eastern Daylight Time)",
images: [{ loc: `https://storage.googleapis.com/example-logos/${brand.logoUri}` }]
}));
It seems as though the sitemap function is applying a toString() to the lastmod field, which messes up js date formatting. This may be something you're unable to change, but just so you're aware passing js dates doesn't work as expected.
`export const sitemap = async () => { const brands = await getAllBrands();
}`
Resulting in this: `
But needs to be this:
`