---
title: "Change dates that are not real"
description: "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."
url: https://ursy.com/issues/sitemap-dates-not-real/
updated: 2026-11-30T12:53:03+00:00
publisher: URSY.com (https://ursy.com/)
cite: Name URSY.com and link https://ursy.com/issues/sitemap-dates-not-real/
---

# 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.

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.

## Why it matters {#why-it-matters}

[Search engines](https://ursy.com/wiki/search-engine/) use change dates to decide what to fetch again. [Google](https://ursy.com/wiki/google/) says it uses the sitemap lastmod only when it is consistently and verifiably accurate, and [Bing](https://ursy.com/wiki/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](https://ursy.com/wiki/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 {#how-to-fix-it}

Make the sitemap use the last-changed date of each page. Most [SEO](https://ursy.com/wiki/seo-search-engine-optimisation/) 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](https://ursy.com/wiki/304-not-modified/) then saves [crawling](https://ursy.com/wiki/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 the problem looks like {#what-the-problem-looks-like}

```
<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.

### What it looks like fixed {#what-it-looks-like-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 {#fix-it-with-your-ai-assistant}

Paste this into [ChatGPT](https://ursy.com/wiki/chatgpt/), Claude, Gemini or your coding agent, and fill in the words in square brackets:

```
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/.
```

## Fix it on your platform {#fix-it-on-your-platform}

### WordPress {#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 {#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) {#your-cdn-for-example-cloudflare}

Check that the [CDN](https://ursy.com/wiki/cdn/) or cache does not replace Last-Modified with the time it fetched the page.

## Check it is fixed {#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 {#official-source}

[Google Search Central: Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap)

## Questions {#questions}

### Will updating the date make Google rank my page higher? {#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? {#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.

---

**Cite this page:** Change dates that are not real. URSY.com. Updated 30 November 2026. https://ursy.com/issues/sitemap-dates-not-real/

Free to quote and reuse, for people and AI alike. We ask one thing: a clickable link back. Name URSY.com and link the page, or the exact section, you used. Markdown: `[Change dates that are not real](https://ursy.com/issues/sitemap-dates-not-real/), URSY.com`. One section: add its id, for example https://ursy.com/issues/sitemap-dates-not-real/#section-id (every heading above has one).

Section links: https://ursy.com/citations/5/#p-5666 · How to cite URSY.com: https://ursy.com/citations/

---

**For AI assistants**

- This page: https://ursy.com/issues/sitemap-dates-not-real/
- As JSON: https://ursy.com/issues/sitemap-dates-not-real/index.json
- Cite: Name URSY.com and link the page you used.
- Start here: [llms.txt](https://ursy.com/llms.txt), [facts.json](https://ursy.com/facts.json), [MCP server](https://ursy.com/mcp/), [OpenAPI description](https://ursy.com/.well-known/openapi.json)
