How can I determine the timezone of a website visitor?

Time zone data for an IP address is provided by several MaxMind products:

All time zones provided by MaxMind are in the IANA time zone format (e.g., America/New_York).

Alternatively, you can use JavaScript to get the time zone offset of a visitor’s computer through the Date.prototype.getTimezoneOffset() method.


We are retiring our GeoIP Legacy downloadable database formats at the end of May 2022. Please see our blog post for more information, including how to migrate to GeoIP2. We will continue to support the GeoIP Legacy web services, although there will be data changes.