Skip to content
All fingerprint checks
Environment & locale

document.lastModified shows the same local time as Date

Pim· Clearcote Research 1 min readCheck id last-modified-vs-date-zone

document.lastModified of a fresh document shows the same local time as new Date(), to the second. A whole-quarter-hour gap names the host's real zone (severity: warn).

What a detector infers

A document that arrived without a Last-Modified header reports the current time as document.lastModified, in the user's local time (HTML spec), so it must show the same wall clock as new Date(). In Chrome the two take different roads: Date, Intl and Temporal use the time zone the JavaScript engine was given, while Blink formats lastModified with the operating system's own zone.

A time zone set above the operating system, by CDP's Emulation.setTimezoneOverride (Playwright's timezoneId option) or by a browser switch that only moves the engine's zone, leaves lastModified on the host clock. Measured on 2026-11-25: a New York zone on an Amsterdam machine made it 6 hours ahead of Date, and a commercial bot detector sends that gap with its payload and marks any non-zero value as an automated browser.

How to resolve it

Set the time zone where both readers see it: the operating system's zone (TZ on Linux), or an engine that formats lastModified in the zone it presents. A timezone override over CDP or Playwright is not enough.

How automation gets caught, layer by layer

Nearby checks in Environment & locale

See all 43 checks in Environment & locale
Who builds this test

Clearcote is a browser built for fingerprint coherence

It is a Chromium fork, maintained by the same people who wrote this reference. It ships as a compiled browser rather than as a stealth script injected into someone else's — which is a description of how it is built, and is not an argument about how it behaves on this check.

This audit takes no position on how Clearcote scores on Environment & locale checks, on this one, or anywhere else. It has no baseline corpus of other people's fingerprints to rank you against and no vendor scoreboard — nearly every check is self-referential, asking one browser the same question through two independent APIs and reporting whether both answers can be true at once. It runs identically on any browser, including ours. Run it on yours and read the result yourself.

See the other checks in Environment & locale — the family last-modified-vs-date-zone belongs to.