diff --git a/src/app/sitemap-public-users.xml/route.ts b/src/app/sitemap-public-users.xml/route.ts index fba9e6f..df02f32 100644 --- a/src/app/sitemap-public-users.xml/route.ts +++ b/src/app/sitemap-public-users.xml/route.ts @@ -1,6 +1,9 @@ import { BASEURL, getAllPublicUsersForSiteMap } from '@/lib/api' import type { UserProfile } from '@/lib/types' +const TODAY = new Date() +TODAY.setHours(0, 0, 0, 0) + function generateSitemap(data: UserProfile[]) { return ` @@ -9,7 +12,7 @@ function generateSitemap(data: UserProfile[]) { return ` ${`${BASEURL}/p/${user.slug}`} - ${new Date().toISOString()} + ${TODAY.toISOString()} ` })