If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

You can try using the PECL geoip package: http://php.ca/manual/en/book.geoip.php
This would let you retrieve information from the ip, and you can use that to feed into timezone fetch for the country and region (one of the functions in the package do that). That timezone can in turn be used with DateTimezone objects.