How to get timezone by IP [duplicate]
问题 This question already has answers here : How to find timezone ID from IP address/country name in PHP? (4 answers) Closed 5 years ago . I have a registration by which i can get the IP address of user who registers. I want to get the timezone of user by his IP address. Like in jquery we can get like this Timezone in jquery How can i do it in PHP. 回答1: You can use GeoIP based services http://www.php.net/manual/en/book.geoip.php Or You can use online services that gives timezone of the IP that