Blog

Why Your Timezone Reveals Your Real Location (And How to Fix It)

Vincent WacklerAug 21, 20265 min read

Changing your GPS coordinates is only half the battle. Websites routinely interrogate your JavaScript runtime clock to uncover where you really are, even if you never grant geolocation permissions.

The Silent Clock Leak

Browsers give JavaScript scripts full access to your operating system's local clock without prompting you for consent. Two primary APIs allow websites to detect your location:

  1. Intl.DateTimeFormat().resolvedOptions().timeZone: Returns the full IANA timezone string (e.g. "America/New_York" or "Europe/Berlin").
  2. new Date().getTimezoneOffset(): Returns the difference in minutes between UTC and your local device time.

When you spoof your GPS coordinates to Tokyo, Japan, but your device clock still executes in GMT-4 (Eastern Daylight Time), websites flag your session for immediate verification or geographic block.

Historical Daylight Saving (DST) Traps

Anti-fraud and location fingerprinting engines go further by constructing Date objects across historical years (such as 1880, 1950, or 1975). Because daylight saving rules changed over decades, different geographic zones have unique historical offset profiles.

Rudimentary spoofers only overwrite today's date offset. When a script runs new Date(1975, 0, 1).getTimezoneOffset(), the unpatched JavaScript engine computes the true host offset, immediately breaking your cover.

How GeoCeptor Keeps Your Clock Coherent

GeoCeptor integrates a comprehensive JavaScript virtual clock that overrides:

  • Date.prototype.getTimezoneOffset across all timestamps.
  • Date.prototype.getHours, setHours, and local getters/setters.
  • Date string serializers including toString(), toDateString(), and toLocaleString().
  • The Intl.DateTimeFormat formatting engine and resolved options.

Pick a place. Your iPhone follows.

Free on the App Store for iPhone, iPad and Mac. Add the free Companion whenever you need every app.