Skip to the content
Start free

Change dates that are not real

The sitemap lastmod or the Last-Modified header shows when the file was made, a future date or a bad format, so crawlers stop trusting it.

Medium priority Sitemaps

Why it matters #

Search engines use change dates to decide what to fetch again. Google says it uses the sitemap lastmod only when it is consistently and verifiably accurate, and Bing says the date must be when the page last changed, not when the sitemap was made. A date that always says now, or a date in the future, teaches them to ignore your dates.

The HTTP Last-Modified header works the same way: it should be the time the content last changed (RFC 9110). If the server or a cache sets it to the moment of each request, it changes on every visit and means nothing. Dates must also use the W3C format, such as 2026-11-23 or 2026-11-23T10:00:00+00:00.

How to fix it #

Make the sitemap use the last-changed date of each page. Most SEO plugins do this by default, so look for a cache or custom code that rewrites it. If you cannot give a true date, leave lastmod out: no date is better than a false one.

Send the real change time as Last-Modified, or do not send the header. Answering If-Modified-Since with 304 Not Modified then saves crawling. Check with the Last-Modified Checker.

  1. Compare the lastmod of a page with the date you last changed it.
  2. Find the plugin, cache or code that sets the date.
  3. Make it use the real change date, or leave the date out.

What it looks like, and fixed #

The problem
<url><loc>https://www.example.com/about/</loc><lastmod>2026-11-29T09:00:00+00:00</lastmod></url>
<url><loc>https://www.example.com/contact/</loc><lastmod>2026-11-29T09:00:00+00:00</lastmod></url>
<url><loc>https://www.example.com/offers/</loc><lastmod>2027-01-01</lastmod></url>
<url><loc>https://www.example.com/blog/</loc><lastmod>29/11/2026</lastmod></url>

Every page claims it changed at the moment the sitemap was made, one date is in the future and one is in the wrong format.

Fixed
<url><loc>https://www.example.com/about/</loc><lastmod>2025-06-14</lastmod></url>
<url><loc>https://www.example.com/contact/</loc><lastmod>2026-03-02</lastmod></url>
<url><loc>https://www.example.com/offers/</loc><lastmod>2026-11-20T16:45:00+00:00</lastmod></url>
<url><loc>https://www.example.com/blog/</loc></url>

Each date is when that page last really changed, in W3C format. Where no true date is known, lastmod is left out.

Fix it with your AI assistant #

Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.

Your instruction for the AI
My website [your website address] runs on [your platform, e.g. WordPress with Yoast behind a cache]. A check says the lastmod dates in my sitemap, or the Last-Modified header, are not real. First read my sitemap and the response headers of [the page address] (or ask me to paste them), compare the dates with my real changes, and tell me in plain words what is wrong and what sets those dates. Then give me the fix so each lastmod is the true last-changed date of its page in W3C format, such as 2026-11-23 or 2026-11-23T10:00:00+00:00, and Last-Modified is the real change time or is not sent. Rules: back up first, never set dates to now or in the future, leave lastmod out where no true date exists, and keep page addresses the same. Give me exact steps or code and where it goes. Finally, tell me to re-check with the URSY.com Last-Modified Checker at ursy.com/lastmod-checker/.

We find the problems, and help you fix them

  1. Check Run a free tool or the full audit.
  2. Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
  3. Re-check Come back, check again, and watch each fix turn green.

How the AI Fix Pack works, with a sample to download

Fix it on your platform #

WordPress

Yoast and Rank Math use the modified date of each post. If every date is today, look for a plugin or code that touches every post, or a cache that rebuilds the sitemap with the current time.

Your server or hosting

If your code writes lastmod, take it from the stored change date of each page. Send Last-Modified with the real change time, or not at all.

Your CDN (for example Cloudflare)

Check that the CDN or cache does not replace Last-Modified with the time it fetched the page.

Check it is fixed #

Run the URSY.com Last-Modified Checker (/lastmod-checker/) again. Dates should differ from page to page, match real changes, use W3C format and never be in the future.

Official source #

Google Search Central: Build and submit a sitemap

Questions #

Will updating the date make Google rank my page higher?

No. Google says it uses lastmod only when it is consistently accurate, and a false date teaches it to ignore your dates.

What counts as a real change?

A change to the main content, such as text, prices or facts. A new copyright year in the footer does not count.

More problems in Sitemaps

See every problem in the library

For AI assistants and developers: Instructions for AI · Developers · How to cite URSY.com