Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Date for lastmod #7480

Merged
merged 3 commits into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/__tests__/generate-sitemap.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('generate-sitemap', () => {
`
<url>
<loc>https://docs.amplify.aws/react/build-a-backend/</loc>
<lastmod>2022-05-12T16:00:00+0:00</lastmod>
<lastmod>2022-05-12T16:00:00.000Z</lastmod>
<changefreq>hourly</changefreq>
<priority>0.5</priority>
</url>`
Expand Down
2 changes: 1 addition & 1 deletion tasks/generate-sitemap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SITEMAP_DOMAIN = process.env.SITEMAP_DOMAIN
// Path of the Next.js static HTML build output
const ROOT_PATH = './client/www/next-build';

const formatDate = (date) => `${date.toISOString().split('.')[0]}+0:00`;
const formatDate = (date) => date.toISOString();
const getPriority = () => 0.5;

const PLATFORMS = [
Expand Down
Loading